Click or drag to resize

OSATParams, TItemViewsHolderOnBeforeRecycleOrDisableViewsHolder Method

Perfect place to clean the views in order to prepare them to be potentially recycled this frame or soon. newItemIndex will be -1 if the item will be disabled/destroyed instead of being recycled.

Namespace:  Com.ForbiddenByte.OSA.Core
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
protected virtual void OnBeforeRecycleOrDisableViewsHolder(
	TItemViewsHolder inRecycleBinOrVisible,
	int newItemIndex
)

Parameters

inRecycleBinOrVisible
Type: TItemViewsHolder
newItemIndex
Type: SystemInt32
-1 means it'll only be disabled and/or destroyed, not recycled ATM
Version Information

Optimized ScrollView Adapter

Supported in: 4.1
See Also