Method GetSceneLoadingStatus
GetSceneLoadingStatus(ref Scene)
Gets the scene loading status. This will be unique for each instance of a scene, even if loaded from the same scene file.
Declaration
[ExcludeFromBurstCompatTesting("References managed engine API and static data")]
public static SceneLoadingStatus GetSceneLoadingStatus(ref Scene scene)
Parameters
| Type | Name | Description |
|---|---|---|
| Scene | scene | The scene to get the status from. |
Returns
| Type | Description |
|---|---|
| SceneLoadingStatus | The current status of the scene. |
GetSceneLoadingStatus(UntypedWeakReferenceId)
Gets the current status of an active scene.
Declaration
[ExcludeFromBurstCompatTesting("References managed engine API and static data")]
[Obsolete("This property is no longer valid. Check the loading status of the scene returned from LoadSceneAsync.")]
public static SceneLoadingStatus GetSceneLoadingStatus(UntypedWeakReferenceId sceneId)
Parameters
| Type | Name | Description |
|---|---|---|
| UntypedWeakReferenceId | sceneId | The id of the scene. |
Returns
| Type | Description |
|---|---|
| SceneLoadingStatus | The status of the scene loading process. |