docs.unity3d.com
    Show / Hide Table of Contents

    Struct CameraSettings.BufferClearing

    Defines how color and depth buffers are cleared.

    Namespace: UnityEngine.Rendering.HighDefinition
    Syntax
    [Serializable]
    public struct BufferClearing

    Fields

    backgroundColorHDR

    The color to use when clearColorMode == Color.

    Declaration
    [ColorUsage(true, true)]
    public Color backgroundColorHDR
    Field Value
    Type Description
    Color

    clearColorMode

    Define the source for the clear color.

    Declaration
    public HDAdditionalCameraData.ClearColorMode clearColorMode
    Field Value
    Type Description
    HDAdditionalCameraData.ClearColorMode

    clearDepth

    True to clear the depth.

    Declaration
    public bool clearDepth
    Field Value
    Type Description
    Boolean

    default

    Default value.

    Declaration
    [Obsolete("Since 2019.3, use BufferClearing.NewDefault() instead.")]
    public static readonly CameraSettings.BufferClearing default
    Field Value
    Type Description
    CameraSettings.BufferClearing

    Methods

    NewDefault()

    Default value.

    Declaration
    public static CameraSettings.BufferClearing NewDefault()
    Returns
    Type Description
    CameraSettings.BufferClearing

    The default value.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023