Documentation

Unity Engine

Unity Engine

CameraClearFlags

Values for Camera.clearFlags, determining what to clear when rendering a Camera.
Read time 1 minuteLast updated 2 months ago

Definition

  • Type: Enum
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public enum CameraClearFlags

Remarks

Additional Resources: camera component.

Fields

Value

Description

DepthClear only the depth buffer.
NothingDon't clear anything.
SkyboxClear with the skybox.
SolidColorClear with a background color.