docs.unity.cn
    Show / Hide Table of Contents

    Method UnloadScene

    UnloadScene(Entity, SceneSystem.UnloadParameters)

    Unload the scene.

    Declaration
    public void UnloadScene(Entity sceneEntity, SceneSystem.UnloadParameters unloadParams = SceneSystem.UnloadParameters.Default)
    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 = SceneSystem.UnloadParameters.Default)
    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 © 2022 Unity Technologies
    Generated by DocFX
    on Wednesday, July 6, 2022
    Terms of use