Click or drag to resize

AbstractViewsHolderInit Method (GameObject, Int32, Boolean, Boolean)

Instantiates rootPrefabGO, assigns it to root and sets its itemIndex to itemIndex. Activates the new instance if activateRootGameObject is true. Also calls CollectViews if callCollectViews is true

Namespace:  Com.ForbiddenByte.OSA.Core
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public virtual void Init(
	GameObject rootPrefabGO,
	int itemIndex,
	bool activateRootGameObject = true,
	bool callCollectViews = true
)

Parameters

rootPrefabGO
Type: GameObject
itemIndex
Type: SystemInt32
activateRootGameObject (Optional)
Type: SystemBoolean
callCollectViews (Optional)
Type: SystemBoolean
Version Information

Optimized ScrollView Adapter

Supported in: 4.1
See Also