LensStudio:HierarchyUtils.js.createOrthoCameraOnObject
FunctionCreates an orthographic camera component on a scene object.
createOrthoCameraOnObject(
scene,sceneObject,unitType?,renderLayer?):SceneObject
Creates an orthographic camera component on a scene object.
Parameters
| Parameter | Type | Description |
|---|---|---|
scene | Scene | The scene in which the camera will be created. |
sceneObject | SceneObject | The scene object on which the camera component will be added. |
unitType? | UnitType | The unit type for the canvas component (optional, default is Editor.Components.UnitType.Points). |
renderLayer? | LayerId | - |
Returns
The modified scene object with the added camera and canvas components.