docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ClearRenderTarget

    ClearRenderTarget(CommandBuffer, ClearFlag, Color)

    Clear the currently bound render texture.

    Declaration
    public static void ClearRenderTarget(CommandBuffer cmd, ClearFlag clearFlag, Color clearColor)
    Parameters
    Type Name Description
    CommandBuffer cmd

    CommandBuffer used for rendering commands.

    ClearFlag clearFlag

    Specify how the render texture should be cleared.

    Color clearColor

    Specify with which color the render texture should be cleared.

    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)