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 — Terms of use
    Generated by DocFX
    on 06 October 2023