Click or drag to resize

OSATParams, TItemViewsHolderRequestChangeItemSizeAndUpdateLayout Method (TItemViewsHolder, Single, Boolean, Boolean)

See RequestChangeItemSizeAndUpdateLayout(Int32, Single, Boolean, Boolean) for additional info or if you want to resize an item which isn't visible

Namespace:  Com.ForbiddenByte.OSA.Core
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public float RequestChangeItemSizeAndUpdateLayout(
	TItemViewsHolder withVH,
	float requestedSize,
	bool itemEndEdgeStationary = false,
	bool computeVisibility = true
)

Parameters

withVH
Type: TItemViewsHolder
the views holder. A common usage for an "expand on click" behavior is to have a button on a view whose onClick fires a method in the adapter where it retrieves the views holder via GetItemViewsHolderIfVisible(RectTransform)
requestedSize
Type: SystemSingle
itemEndEdgeStationary (Optional)
Type: SystemBoolean
computeVisibility (Optional)
Type: SystemBoolean

Return Value

Type: Single
Version Information

Optimized ScrollView Adapter

Supported in: 4.1
See Also