Skip to content

format

typescript
Camera.depth

class: Camera

description

The depth of the camera in the camera rendering order.

Cameras with lower depth are rendered before cameras with higher depth. If there are multiple cameras and some cameras do not cover the entire screen, this property can be used to control the drawing order of the cameras.

parameter

param_nametypedescription

reture

typedescription
numberThe depth of the current camera in the rendering order.

code example

javascript