Skip to main content

LensStudio:HierarchyUtils.js.getFirstCameraInScene

Function

Finds the first camera in the scene.

getFirstCameraInScene(scene, cameraType?): SceneObject

Finds the first camera in the scene.

Parameters

ParameterTypeDescription
sceneScene-
cameraType?CameraTypeThe type of camera to search for, or null to find any camera.

Returns

SceneObject

The first camera in the scene model, or null if none is found.