Preparing search index...

    The same entity as in Lens Scripting.

        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}`);
    Index

    Enumeration Members

    Enumeration Members

    None: number

    Do not clear the depth buffer.

    Texture: number

    Clear depth buffer to a texture.

    Value: number

    Clear depth buffer to a constant value.