Editor Scripting API
    • Finds or creates a camera object of the specified type within the given scene.

      Parameters

      • scene: Scene

        The scene in which to find or create the camera object.

      • cameraType: CameraType

        The type of camera to find or create (Orthographic or Perspective).

      • OptionalbearerSceneObject: SceneObject

        Optional. The scene object to which the new camera will be attached if created.

      Returns SceneObject

      The scene object containing the camera of the specified type.

      Will throw an error if the camera type is invalid.

    MMNEPVFCICPMFPCPTTAAATR