Method ProvideScene
ProvideScene(ResourceManager, IResourceLocation, LoadSceneMode, bool, int)
Load a scene at a specified resource location.
Declaration
public AsyncOperationHandle<SceneInstance> ProvideScene(ResourceManager resourceManager, IResourceLocation location, LoadSceneMode loadSceneMode, bool activateOnLoad, int priority)
Parameters
Type | Name | Description |
---|---|---|
Resource |
resourceManager | The resource manager to use for loading dependencies. |
IResource |
location | The location of the scene. |
Load |
loadSceneMode | |
bool | activateOnLoad | If true, the scene is activated as soon as it finished loading. Otherwise it needs to be activated via the returned SceneInstance object. |
int | priority | The loading priority for the load. |
Returns
Type | Description |
---|---|
Async |
An operation handle for the loading of the scene. The scene is wrapped in a SceneInstance object to support delayed activation. |
Implements
ProvideScene(ResourceManager, IResourceLocation, LoadSceneParameters, bool, int)
Load a scene at a specified resource location.
Declaration
public AsyncOperationHandle<SceneInstance> ProvideScene(ResourceManager resourceManager, IResourceLocation location, LoadSceneParameters loadSceneParameters, bool activateOnLoad, int priority)
Parameters
Type | Name | Description |
---|---|---|
Resource |
resourceManager | The resource manager to use for loading dependencies. |
IResource |
location | The location of the scene. |
Load |
loadSceneParameters | Load parameters for the scene. |
bool | activateOnLoad | If true, the scene is activated as soon as it finished loading. Otherwise it needs to be activated via the returned SceneInstance object. |
int | priority | The loading priority for the load. |
Returns
Type | Description |
---|---|
Async |
An operation handle for the loading of the scene. The scene is wrapped in a SceneInstance object to support delayed activation. |
Implements
ProvideScene(ResourceManager, IResourceLocation, LoadSceneParameters, SceneReleaseMode, bool, int)
Load a scene at a specified resource location.
Declaration
public AsyncOperationHandle<SceneInstance> ProvideScene(ResourceManager resourceManager, IResourceLocation location, LoadSceneParameters loadSceneParameters, SceneReleaseMode releaseMode, bool activateOnLoad, int priority)
Parameters
Type | Name | Description |
---|---|---|
Resource |
resourceManager | The resource manager to use for loading dependencies. |
IResource |
location | The location of the scene. |
Load |
loadSceneParameters | Load parameters for the scene. |
Scene |
releaseMode | How the scene is handled if it is unloaded due to another scene loading using single mode. |
bool | activateOnLoad | If true, the scene is activated as soon as it finished loading. Otherwise it needs to be activated via the returned SceneInstance object. |
int | priority | The loading priority for the load. |
Returns
Type | Description |
---|---|
Async |
An operation handle for the loading of the scene. The scene is wrapped in a SceneInstance object to support delayed activation. |