docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method UnloadScene

    UnloadScene(ref Scene)

    Release a scene. If the reference count goes to zero, the scene will be unloaded.

    Declaration
    [ExcludeFromBurstCompatTesting("References managed engine API and static data")]
    public static void UnloadScene(ref Scene scene)
    Parameters
    Type Name Description
    Scene scene

    The scene to release.

    In This Article
    • UnloadScene(ref Scene)
    Back to top
    Copyright © 2024 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)