Click or drag to resize

MainExampleCreateViewsHolder 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.Demos.Main
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
protected override ClientItemViewsHolder CreateViewsHolder(
	int itemIndex
)

Parameters

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

Return Value

Type: ClientItemViewsHolder
Version Information

Optimized ScrollView Adapter

Supported in: 4.1
See Also