Click or drag to resize

MultiplePrefabsExampleIsRecyclable Method

Overriding the base implementation, which always returns true. In this case, a views holder is recyclable only if its CanPresentModelType(Type) returns true for the model at index indexOfItemThatWillBecomeVisible

Namespace:  frame8.ScrollRectItemsAdapter.MultiplePrefabsExample
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
protected override bool IsRecyclable(
	BaseVH potentiallyRecyclable,
	int indexOfItemThatWillBecomeVisible,
	float heightOfItemThatWillBecomeVisible
)

Parameters

potentiallyRecyclable
Type: frame8.ScrollRectItemsAdapter.MultiplePrefabsExample.ViewsHoldersBaseVH
indexOfItemThatWillBecomeVisible
Type: SystemInt32
heightOfItemThatWillBecomeVisible
Type: SystemSingle

Return Value

Type: Boolean
Version Information

Optimized ScrollView Adapter

Supported in: 3.1
See Also