Enum Environment.BGMode

enum BGMode : int { ... }

Enum members

NameDescription
bgCameraFeed Displays a camera feed in the background.
bgCanvas Displays a CanvasLayer in the background.
bgClearColor Clears the background using the clear color defined in ProjectSettings.rendering/environment/defaultClearColor.
bgColor Clears the background using a custom clear color.
bgColorSky Clears the background using a custom clear color and allows defining a sky for shading and reflection. This mode is slightly faster than constant BG_SKY and should be preferred in scenes where reflections can be visible, but the sky itself never is (e.g. top-down camera).
bgKeep Keeps on screen every pixel drawn in the background. This is the fastest background mode, but it can only be safely used in fully-interior scenes (no visible sky or sky reflections). If enabled in a scene where the background is visible, "ghost trail" artifacts will be visible when moving the camera.
bgMax Represents the size of the bgmode enum.
bgSky Displays a user-defined sky in the background.