Lens Scripting API
    Preparing search index...
    • Recursively finds all script components of a specific class type in the children of the given SceneObject.

      Type Parameters

      Parameters

      • sceneObject: SceneObject

        The SceneObject whose children to search.

      • scriptClass: new (...args: any[]) => T

        The constructor/class of the script component to search for.

      • maxDepth: number = DEFAULT_MAX_CHILD_SEARCH_LEVELS

        Maximum search depth.

      Returns T[]

      An array of all matching script components found.