docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Enum ClearFlag

    Render Textures clear flag. This is an legacy alias for RTClearFlags.

    Namespace: UnityEngine.Rendering
    Assembly: Unity.RenderPipelines.Core.Runtime.dll
    Syntax
    [Flags]
    public enum ClearFlag

    Fields

    Name Description
    All

    Clear both color, depth and stencil buffers.

    Color

    Clear the color buffer.

    ColorStencil

    Clear the color and stencil buffers.

    Depth

    Clear the depth buffer.

    DepthStencil

    Clear the depth and stencil buffers.

    None

    Don't clear.

    Stencil

    Clear the stencil buffer.

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<ClearFlag>(ClearFlag, ClearFlag, bool)
    AnalyticsUtils.ToNestedColumn<ClearFlag>(ClearFlag, bool)
    AnalyticsUtils.ToNestedColumn<ClearFlag>(ClearFlag, ClearFlag)
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)