Table of Contents

Class TransformUtils

Namespace
S1API.Utils
Assembly
S1API.dll

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

root Transform

Root transform to search under.

name string

Name of the transform to find.

Returns

Transform

The first matching transform, or null if not found.