docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddGPUScene

    AddGPUScene(int, int)

    Add a GPU scene to a viewer

    Declaration
    [HandleProcessCorruptedStateExceptions]
    public void AddGPUScene(int scene, int viewer = -1)
    Parameters
    Type Name Description
    int scene

    GPU Scene to render in the viewer

    int viewer

    Viewer id returned by the createViewer function. -1 uses the default viewer id (see setDefaultViewerId).

    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)