Editor.Components.CameraClearColor.Mode
EnumThe 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 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}`);
Enumeration Members
Background
Background:
number
Clear to the scene background.
Color
Color:
number
Clear to a solid color.
None
None:
number
Do not clear the camera background.
Texture
Texture:
number
Clear to a texture.