LensStudio:HierarchyUtils.js.createPerspectiveCameraOnObject
FunctionCreates a perspective camera on the specified scene object.
createPerspectiveCameraOnObject(
scene,sceneObject,renderLayer?):SceneObject
Creates a perspective camera on the specified 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 will be added. |
renderLayer? | LayerId | - |
Returns
The modified scene object with the added camera component.