Editor Scripting API
    • Finds a scene object or an array of scene objects in the descendants of a base scene object by name.

      Parameters

      • base: Scene | SceneObject

        The base scene object to search in.

      • name: string

        The name of the scene object(s) to find. Only exact matches are considered.

      • Optionaloptions: SearchOptions

        Optional search options.

        Represents the options for searching.

        • OptionalcreateIfNotFound?: boolean

          Indicates whether to create the item if it is not found.

        • OptionalcreateOptions?: CreateOptions

          The options for creating the item.

        • OptionalfindAll?: boolean

          Indicates whether to find all matches or stop at the first match.

        • OptionalmaxDepth?: number

          The maximum depth to search. 1 means only the immediate children of the base object.

      Returns SceneObject[]

      an array of found scene objects, or null if not found.

    MMNEPVFCICPMFPCPTTAAATR