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. |