Struct SceneSystem
High level API for loading and unloading scenes
Namespace: Unity.Scenes
Assembly: Unity.Scenes.dll
Syntax
[WorldSystemFilter(WorldSystemFilterFlags.Default|WorldSystemFilterFlags.Editor|WorldSystemFilterFlags.Streaming, WorldSystemFilterFlags.Default)]
[UpdateInGroup(typeof(SceneSystemGroup))]
public struct SceneSystem : ISystem, ISystemStartStop
Methods
Name | Description |
---|---|
Get |
Find the scene given a guid. This will only return the first matching scene. |
Get |
Get the guid for a scene path or name. This is a slow method - it is best to use the guid directly. |
Get |
Check the streaming state of a scene that is being loaded. |
Get |
Check the streaming state of a section that is being loaded. |
Is |
Check if a scene or subscene is loaded. |
Is |
Check if a section of a subscene is loaded. |
Load |
Load a prefab by its weak reference id. A PrefabRoot component is added to the returned entity when the load completes. |
Load |
Loads a scene. |
Load |
Load a scene or prefab by its asset GUID. When loading a prefab a PrefabRoot component is added to the scene entity when the load completes. |
Load |
Load a scene by its weak reference id. |
On |
Callback invoked when the system is created. |
On |
|
On |
Callback invoked when the system is destroyed. |
On |
Callback invoked when the system starts running. |
On |
Callback invoked when the system stops running. |
On |
Callback invoked when the system is updated. |
Unload |
Unload the scene. |
Unload |
Unload a SubScene by GUID. This will only unload the first matching scene. |
Unload |
Unload a SubScene by its weak reference id. This will only unload the first matching scene. |