Click or drag to resize

AnimatedInsertRemoveExampleCreateViewsHolder 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, RectTransform, Int32, Boolean, Boolean) shortcut or manually set its itemIndex, instantiate the prefab and call its CollectViews

Namespace:  Com.ForbiddenByte.OSA.Demos.AnimatedInsertRemove
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
protected override MyVH CreateViewsHolder(
	int itemIndex
)

Parameters

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

Return Value

Type: MyVH
Version Information

Optimized ScrollView Adapter

Supported in: 4.3
See Also