Editor Scripting API
    • Finds the nearest camera in the ancestors of the given scene object.

      Parameters

      • baseSceneObject: SceneObject

        The scene object from which to start the search.

      • OptionalcameraType: CameraType

        The type of camera to search for (e.g., Orthographic, Perspective). Use null for any type.

      • OptionalmaxDepth: number

        Maximum search depth. Default is 1000.

      Returns SceneObject

      The nearest matching camera or null.

    MMNEPVFCICPMFPCPTTAAATR