LensStudio:HierarchyUtils.js.getFirstCameraInScene
FunctionFinds the first camera in the scene.
getFirstCameraInScene(
scene,cameraType?):SceneObject
Finds the first camera in the scene.
Parameters
| Parameter | Type | Description |
|---|---|---|
scene | Scene | - |
cameraType? | CameraType | The type of camera to search for, or null to find any camera. |
Returns
The first camera in the scene model, or null if none is found.