TransformExt.GetCommonRootTransformFromSet Method

From a set of transforms, returns which one of them is a common root of all if any. The transform must be in the list itself.

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

Syntax

C#

public static Transform GetCommonRootTransformFromSet(
	params Transform[] transforms
)

Parameters

 

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

Return Value

Type: Transform
Returns which transform from all the ones passed as parameters is a common root from all. If no one is a common root it will return null.

See Also

Reference

TransformExt Class
UltimateXR.Extensions.Unity Namespace