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 clear color mode to Color and specify the clear color
    camera.clearColor.mode = Editor.Components.CameraClearColor.Mode.Color;
    camera.clearColor.color = new vec4(0.2, 0.2, 0.2, 1.0);
    console.log(`clearColor.mode: ${camera.clearColor.mode}`);
    Index

    Enumeration Members

    Enumeration Members

    Background: number

    Clear to the scene background.

    Color: number

    Clear to a solid color.

    None: number

    Do not clear the camera background.

    Texture: number

    Clear to a texture.