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:  Com.ForbiddenByte.OSA.Demos.MultiplePrefabs
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
protected override bool IsRecyclable(
	BaseVH potentiallyRecyclable,
	int indexOfItemThatWillBecomeVisible,
	double heightOfItemThatWillBecomeVisible
)

Parameters

potentiallyRecyclable
Type: Com.ForbiddenByte.OSA.Demos.MultiplePrefabs.ViewsHoldersBaseVH
indexOfItemThatWillBecomeVisible
Type: SystemInt32
heightOfItemThatWillBecomeVisible
Type: SystemDouble

Return Value

Type: Boolean
Version Information

Optimized ScrollView Adapter

Supported in: 4.1
See Also