Skip to main content

Editor.Components.CameraClearDepth.Mode

Enum

The same entity as in Lens Scripting.

Index

Enumeration Members

Example

const model = this.pluginSystem.findInterface(Editor.Model.IModel) as Editor.Model.IModel;
const camera = model.project.scene.mainCamera;

// Set the camera to clear depth to a specific value
camera.clearDepth.mode = Editor.Components.CameraClearDepth.Mode.Value;
camera.clearDepth.value = 1.0;
console.log(`clearDepth.mode: ${camera.clearDepth.mode}, value: ${camera.clearDepth.value}`);

Enumeration Members

None

None: number

Do not clear the depth buffer.


Texture

Texture: number

Clear depth buffer to a texture.


Value

Value: number

Clear depth buffer to a constant value.

See also

Editor.Components.Camera.