Method LoadSceneAsync
LoadSceneAsync(EntitySceneReference, SceneSystem.LoadParameters)
Load a scene by its weak reference id.
Declaration
public Entity LoadSceneAsync(EntitySceneReference sceneReferenceId, SceneSystem.LoadParameters parameters = default(SceneSystem.LoadParameters))
Parameters
Type | Name | Description |
---|---|---|
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(Hash128, SceneSystem.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 Entity LoadSceneAsync(Hash128 sceneGUID, SceneSystem.LoadParameters parameters = default(SceneSystem.LoadParameters))
Parameters
Type | Name | Description |
---|---|---|
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(Entity, SceneSystem.LoadParameters)
Declaration
public void LoadSceneAsync(Entity sceneEntity, SceneSystem.LoadParameters parameters = default(SceneSystem.LoadParameters))
Parameters
Type | Name | Description |
---|---|---|
Entity | sceneEntity | |
SceneSystem.LoadParameters | parameters |