Click or drag to resize

OSATParams, TItemViewsHolderGetViewsHolderClosestToViewportLongitudinalNormalizedAbstractPoint Method

Will set distance to MaxValue if no ViewsHolder is found. The point's format is in range [0=startEdge(top or left) .. 1=endEdge (bottom or right)] The transversal component of the point is considered to be 0.5f (middle). Transversal = vertical, if horizontal ScrollView. Else, horizontal

Namespace:  Com.ForbiddenByte.OSA.Core
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public virtual AbstractViewsHolder GetViewsHolderClosestToViewportLongitudinalNormalizedAbstractPoint(
	Canvas c,
	RectTransform canvasRectTransform,
	float viewportNormalizedAbstractPoint,
	float itemNormalizedAbstractPoint,
	out float distance
)

Parameters

c
Type: Canvas
canvasRectTransform
Type: RectTransform
viewportNormalizedAbstractPoint
Type: SystemSingle
itemNormalizedAbstractPoint
Type: SystemSingle
distance
Type: SystemSingle

Return Value

Type: AbstractViewsHolder

Implements

IOSAGetViewsHolderClosestToViewportLongitudinalNormalizedAbstractPoint(Canvas, RectTransform, Single, Single, Single)
Version Information

Optimized ScrollView Adapter

Supported in: 4.1
See Also