docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetViewport

    SetViewport(CommandBuffer, RTHandle)

    Setup the viewport to the size of the provided RTHandle.

    Declaration
    public static void SetViewport(CommandBuffer cmd, RTHandle target)
    Parameters
    Type Name Description
    CommandBuffer cmd

    CommandBuffer used for rendering commands.

    RTHandle target

    RTHandle from which to compute the proper viewport.

    In This Article
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 06 October 2023