Click or drag to resize

OSATParams, TItemViewsHolderCreateViewsHolder Method

Called when there are no recyclable views for itemIndex. Provide a new viewsholder instance for itemIndex. This is the place where you must initialize the viewsholder

via Init(GameObject, Int32, Boolean, Boolean) shortcut or manually set its itemIndex, instantiate the prefab and call its CollectViews

Namespace:  Com.ForbiddenByte.OSA.Core
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
protected abstract TItemViewsHolder CreateViewsHolder(
	int itemIndex
)

Parameters

itemIndex
Type: SystemInt32
the index of the model that'll be presented by this views holder

Return Value

Type: TItemViewsHolder
Version Information

Optimized ScrollView Adapter

Supported in: 4.1
See Also