Method LoadScene
LoadScene(object, LoadSceneMode, bool, int)
Load scene.
선언
[Obsolete]
public static AsyncOperationHandle<SceneInstance> LoadScene(object key, LoadSceneMode loadMode = LoadSceneMode.Single, bool activateOnLoad = true, int priority = 100)
파라미터
타입 | 이름 | 설명 |
---|---|---|
object | key | The key of the location of the scene to load. |
LoadSceneMode | loadMode | Scene load mode. |
bool | activateOnLoad | If false, the scene will load but not activate (for background loading). The SceneInstance returned has an Activate() method that can be called to do this at a later point. |
int | priority | Async operation priority for scene loading. |
반환
타입 | 설명 |
---|---|
AsyncOperationHandle<SceneInstance> | The operation handle for the request. |
참고
LoadScene(IResourceLocation, LoadSceneMode, bool, int)
Load scene.
선언
[Obsolete]
public static AsyncOperationHandle<SceneInstance> LoadScene(IResourceLocation location, LoadSceneMode loadMode = LoadSceneMode.Single, bool activateOnLoad = true, int priority = 100)
파라미터
타입 | 이름 | 설명 |
---|---|---|
IResourceLocation | location | The location of the scene to load. |
LoadSceneMode | loadMode | Scene load mode. |
bool | activateOnLoad | If false, the scene will load but not activate (for background loading). The SceneInstance returned has an Activate() method that can be called to do this at a later point. |
int | priority | Async operation priority for scene loading. |
반환
타입 | 설명 |
---|---|
AsyncOperationHandle<SceneInstance> | The operation handle for the request. |