A wrapper for async scene operations. More...
Inherits IEnumerator.
Classes | |
struct | Awaiter |
Awaiter for NetworkSceneAsyncOp More... | |
Public Member Functions | |
void | AddOnCompleted (Action< NetworkSceneAsyncOp > action) |
Adds a callback to be called when the operation is completed More... | |
Awaiter | GetAwaiter () |
Gets the awaiter for the operation More... | |
bool IEnumerator. | MoveNext () |
void IEnumerator. | Reset () |
Static Public Member Functions | |
static NetworkSceneAsyncOp | FromAsyncOperation (SceneRef sceneRef, UnityEngine.AsyncOperation asyncOp) |
Creates a NetworkSceneAsyncOp from a UnityEngine.AsyncOperation More... | |
static NetworkSceneAsyncOp | FromCompleted (SceneRef sceneRef) |
Creates a completed NetworkSceneAsyncOp More... | |
static NetworkSceneAsyncOp | FromCoroutine (SceneRef sceneRef, ICoroutine coroutine) |
Creates a NetworkSceneAsyncOp from a ICoroutine More... | |
static NetworkSceneAsyncOp | FromError (SceneRef sceneRef, Exception error) |
Creates a NetworkSceneAsyncOp from a Exception More... | |
static NetworkSceneAsyncOp | FromTask (SceneRef sceneRef, Task task) |
Creates a NetworkSceneAsyncOp from a Task More... | |
Public Attributes | |
readonly SceneRef | SceneRef |
The scene reference of the operation More... | |
Properties | |
object IEnumerator. | Current [get] |
Exception? | Error [get] |
Attached error to the operation More... | |
bool | IsDone [get] |
Signals if the operation is done More... | |
bool | IsValid [get] |
Signals if the operation is valid More... | |
A wrapper for async scene operations.
void AddOnCompleted | ( | Action< NetworkSceneAsyncOp > | action | ) |
Adds a callback to be called when the operation is completed
action | The callback to be called |
|
static |
Creates a NetworkSceneAsyncOp from a UnityEngine.AsyncOperation
sceneRef | Scene reference |
asyncOp | Async operation reference |
ArgumentNullException | Thrown if asyncOp is null |
|
static |
Creates a completed NetworkSceneAsyncOp
sceneRef | Scene reference |
|
static |
Creates a NetworkSceneAsyncOp from a ICoroutine
sceneRef | Scene reference |
coroutine | Coroutine reference |
ArgumentNullException | Thrown if coroutine is null |
|
static |
Creates a NetworkSceneAsyncOp from a Exception
sceneRef | Scene reference |
error | Exception reference |
ArgumentNullException | Thrown if error is null |
|
static |
Creates a NetworkSceneAsyncOp from a Task
sceneRef | Scene reference |
task | Task reference |
ArgumentNullException | Thrown if task is null |
Awaiter GetAwaiter | ( | ) |
Gets the awaiter for the operation
|
get |
Attached error to the operation
|
get |
Signals if the operation is done
|
get |
Signals if the operation is valid