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 — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)