TransformExt.GetTransformsWithoutChildren Method
Gets all the transforms that don’t have any children.
Namespace: UltimateXR.Extensions.Unity
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static void GetTransformsWithoutChildren(
this Transform transform,
ref List<Transform> transforms
)
Parameters
- transform
- Type: Transform
Transform where to start looking for. This method will only traverse the transform itself and its sub-hierarchy - transforms
- Type: System.Collections.Generic.List(Transform)
A list where all the found transforms without children will be appended
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type Transform. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).