docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method AddScene

    AddScene(LoadableSceneId)

    Adds a LoadableSceneId for a scene during build.

    Declaration
    public int AddScene(LoadableSceneId sceneId)
    Parameters
    Type Name Description
    LoadableSceneId sceneId

    The LoadableSceneId for the scene.

    Returns
    Type Description
    int

    The integer index used to look up this scene at runtime.

    In This Article
    Back to top
    Copyright © 2026 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)