Method LoadSceneAsync
LoadSceneAsync(WorldUnmanaged, EntitySceneReference, LoadParameters)
Load a scene by its weak reference id.
Declaration
public static Entity LoadSceneAsync(WorldUnmanaged world, EntitySceneReference sceneReferenceId, SceneSystem.LoadParameters parameters = default)
Parameters
Type | Name | Description |
---|---|---|
WorldUnmanaged | world | The World in which the scene is loaded. |
EntitySceneReference | sceneReferenceId | The weak asset reference to the scene. |
SceneSystem.LoadParameters | parameters | The load parameters for the scene. |
Returns
Type | Description |
---|---|
Entity | An entity representing the loading state of the scene. |
LoadSceneAsync(WorldUnmanaged, Hash128, LoadParameters)
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.
Declaration
public static Entity LoadSceneAsync(WorldUnmanaged world, Hash128 sceneGUID, SceneSystem.LoadParameters parameters = default)
Parameters
Type | Name | Description |
---|---|---|
WorldUnmanaged | world | The World in which the prefab is loaded. |
Hash128 | sceneGUID | The guid of the scene or prefab. |
SceneSystem.LoadParameters | parameters | The load parameters for the scene or prefab. |
Returns
Type | Description |
---|---|
Entity | An entity representing the loading state of the scene or prefab. |
LoadSceneAsync(WorldUnmanaged, Entity, LoadParameters)
Loads a scene.
Declaration
public static void LoadSceneAsync(WorldUnmanaged world, Entity sceneEntity, SceneSystem.LoadParameters parameters = default)
Parameters
Type | Name | Description |
---|---|---|
WorldUnmanaged | world | The World in which the scene is loaded. |
Entity | sceneEntity | The entity representing the loading state of the scene. |
SceneSystem.LoadParameters | parameters | The load parameters for the scene or prefab. |