TransformExt.GetNthNonNullTransformFromSet Method

Gets the n-th non-null transform from a set of transforms.

Namespace: UltimateXR.Extensions.Unity
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static Transform GetNthNonNullTransformFromSet(
	int n,
	params Transform[] transforms
)

Parameters

 

n
Type: System.Int32
How many non-null elements to skip until the next non-null is returned
transforms
Type: Transform[]
Variable number of transforms to check

Return Value

Type: Transform
Returns the i-th non-null transform or null if none was found

See Also

Reference

TransformExt Class
UltimateXR.Extensions.Unity Namespace