docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateViewer

    CreateViewer(int, int, GraphicsContext, int)

    Create a new viewer

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public int CreateViewer(int width, int height, GraphicsContext sharedContext = null, int nbViews = 1)
    Parameters
    Type Name Description
    int width

    Width of the viewer framebuffer

    int height

    Height of the viewer framebuffer

    GraphicsContext sharedContext

    Interop context handle

    int nbViews

    Nb views

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