Click or drag to resize

MultiplePrefabsExampleOnItemIndexChangedDueInsertOrRemove Method

This is overidden only so that the items' title will be updated to reflect its new index in case of Insert/Remove, because the index is not stored in the model

If you don't store/care about the index of each item, you can omit this

For more info, see OnItemIndexChangedDueInsertOrRemove(TItemViewsHolder, Int32, Boolean, Int32)

Namespace:  Com.ForbiddenByte.OSA.Demos.MultiplePrefabs
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
protected override void OnItemIndexChangedDueInsertOrRemove(
	BaseVH shiftedViewsHolder,
	int oldIndex,
	bool wasInsert,
	int removeOrInsertIndex
)

Parameters

shiftedViewsHolder
Type: Com.ForbiddenByte.OSA.Demos.MultiplePrefabs.ViewsHoldersBaseVH
oldIndex
Type: SystemInt32
wasInsert
Type: SystemBoolean
removeOrInsertIndex
Type: SystemInt32
Version Information

Optimized ScrollView Adapter

Supported in: 4.1
See Also