ComponentExt.GetCommonRootComponentFromSet<T> Method
From a set of components, returns which one of them has a transform that is a common root of all. The transform must be the transform of a component in the list.
Namespace: UltimateXR.Extensions.Unity
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static T GetCommonRootComponentFromSet<T>(
params T[] components
)
where T : Component
Parameters
- components
- Type: T[]
Components whose transforms to check
Type Parameters
- T
- [Missing
documentation for “M:UltimateXR.Extensions.Unity.ComponentExt.GetCommonRootComponentFromSet 1(
0[])”]
Return Value
Type: T
Returns which transform from all the components passed as parameters is a common root of all. If no component has a transform that is a common root it returns null.