docs.unity3d.com
    Show / Hide Table of Contents

    Method UnloadScene

    UnloadScene(Entity, SceneSystem.UnloadParameters)

    Unload the scene.

    Declaration
    public void UnloadScene(Entity sceneEntity, SceneSystem.UnloadParameters unloadParams = default(SceneSystem.UnloadParameters))
    Parameters
    Type Name Description
    Entity sceneEntity

    The entity for the scene.

    SceneSystem.UnloadParameters unloadParams

    Parameters controlling the unload process. These are ignored for GameObject scenes.

    UnloadScene(Hash128, SceneSystem.UnloadParameters)

    Unload a SubScene by GUID. This will only unload the first matching scene.

    Declaration
    public void UnloadScene(Hash128 sceneGUID, SceneSystem.UnloadParameters unloadParams = default(SceneSystem.UnloadParameters))
    Parameters
    Type Name Description
    Hash128 sceneGUID

    The guid of the scene.

    SceneSystem.UnloadParameters unloadParams

    Parameters controlling the unload process. These are ignored for GameObject scenes.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023