Method ProvideScene
ProvideScene(ResourceManager, IResourceLocation, LoadSceneMode, bool, int)
Load a scene at a specified resource location.
선언
AsyncOperationHandle<SceneInstance> ProvideScene(ResourceManager resourceManager, IResourceLocation location, LoadSceneMode loadMode, bool activateOnLoad, int priority)
파라미터
타입 | 이름 | 설명 |
---|---|---|
ResourceManager | resourceManager | The resource manager to use for loading dependencies. |
IResourceLocation | location | The location of the scene. |
LoadSceneMode | loadMode | Load mode 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. |
반환
타입 | 설명 |
---|---|
AsyncOperationHandle<SceneInstance> | An operation handle for the loading of the scene. The scene is wrapped in a SceneInstance object to support delayed activation. |
ProvideScene(ResourceManager, IResourceLocation, LoadSceneParameters, bool, int)
Load a scene at a specified resource location.
선언
AsyncOperationHandle<SceneInstance> ProvideScene(ResourceManager resourceManager, IResourceLocation location, LoadSceneParameters loadSceneParameters, bool activateOnLoad, int priority)
파라미터
타입 | 이름 | 설명 |
---|---|---|
ResourceManager | resourceManager | The resource manager to use for loading dependencies. |
IResourceLocation | location | The location of the scene. |
LoadSceneParameters | 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. |
반환
타입 | 설명 |
---|---|
AsyncOperationHandle<SceneInstance> | An operation handle for the loading of the scene. The scene is wrapped in a SceneInstance object to support delayed activation. |