docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetCameraRenderTarget

    SetCameraRenderTarget(CommandBuffer, bool, ClearFlag)

    Bind the camera color buffer as the current render target

    Declaration
    [Obsolete("Use directly CoreUtils.SetRenderTarget with the render target of your choice.")]
    protected void SetCameraRenderTarget(CommandBuffer cmd, bool bindDepth = true, ClearFlag clearFlags = ClearFlag.None)
    Parameters
    Type Name Description
    CommandBuffer cmd
    bool bindDepth

    if true we bind the camera depth buffer in addition to the color

    ClearFlag clearFlags
    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)