• Searches for a SceneObject with the given name in the tree rooted at the given root SceneObject.

    Parameters

    • root: SceneObject

      The root SceneObject of the tree to search.

    • name: string

      The name of the SceneObject to search for.

    Returns SceneObject | null

    The first SceneObject with the given name if it exists in the tree, or undefined otherwise.