docs.unity.cn
    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.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, September 20, 2023