Class TransformUtils
Utilities for working with Unity UnityEngine.Transform hierarchies. This class is intended for public use by mod developers.
public static class TransformUtils
- Inheritance
-
TransformUtils
- Inherited Members
Methods
FindDescendant(Transform, string)
Finds a descendant by name using depth-first search. Use this when the target may not be a direct child (e.g. nested under a viewport or scroll container).
public static Transform FindDescendant(Transform root, string name)
Parameters
rootTransformRoot transform to search under.
namestringName of the transform to find.
Returns
- Transform
The first matching transform, or null if not found.