TransformExt.GetFirstNonNullTransformFromSet Method

Gets the first 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 GetFirstNonNullTransformFromSet(
	params Transform[] transforms
)

Parameters

 

transforms
Type: Transform[]
Variable number of transforms to check

Return Value

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

See Also

Reference

TransformExt Class
UltimateXR.Extensions.Unity Namespace