Editor Scripting API
    • Finds or creates an orthographic camera for a given scene object.

      Parameters

      • scene: Scene

        The scene in which the camera will be created or searched.

      • sceneObject: SceneObject

        The scene object for which the camera will be created or searched.

      • OptionalcanvasUnitType: UnitType

        The unit type for the canvas component of the camera. Defaults to Editor.Components.UnitType.Points.

      Returns {
          cameraObject: SceneObject;
          canvasComponent: Canvas;
          screenRegionComponent: ScreenRegionComponent;
      }

      An object containing the camera object, screen region component, and canvas component.

    MMNEPVFCICPMFPCPTTAAATR