TransformExt.GetAllChildren Method
Gets all the children recursively under a given Transform. The list will not contain the source [!:transform] itself.
Namespace: UltimateXR.Extensions.Unity
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0
Syntax
C#
public static void GetAllChildren(
this Transform transform,
ref List<Transform> transforms
)
Parameters
- transform
- Type: Transform
Transform to get all children of - transforms
- Type: System.Collections.Generic.List(Transform)
A list with all the transforms found below the hierarchy
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).