Editor Scripting API
    • Creates an orthographic camera component on a scene object.

      Parameters

      • scene: Scene

        The scene in which the camera will be created.

      • sceneObject: SceneObject

        The scene object on which the camera component will be added.

      • OptionalunitType: UnitType

        The unit type for the canvas component (optional, default is Editor.Components.UnitType.Points).

      • OptionalrenderLayer: LayerId

      Returns SceneObject

      The modified scene object with the added camera and canvas components.

    MMNEPVFCICPMFPCPTTAAATR