Photon Fusion
2.1.1
A wrapper for async scene operations. More...
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. | |
| Awaiter | GetAwaiter () |
| Gets the awaiter for the operation. | |
Static Public Member Functions | |
| static NetworkSceneAsyncOp | FromAsyncOperation (SceneRef sceneRef, UnityEngine.AsyncOperation asyncOp) |
| Creates a NetworkSceneAsyncOp from a UnityEngine.AsyncOperation. | |
| static NetworkSceneAsyncOp | FromCompleted (SceneRef sceneRef) |
| Creates a completed NetworkSceneAsyncOp. | |
| static NetworkSceneAsyncOp | FromCoroutine (SceneRef sceneRef, ICoroutine coroutine) |
| Creates a NetworkSceneAsyncOp from a ICoroutine. | |
| static NetworkSceneAsyncOp | FromError (SceneRef sceneRef, Exception error) |
| Creates a NetworkSceneAsyncOp from a Exception. | |
| static NetworkSceneAsyncOp | FromTask (SceneRef sceneRef, Task task) |
| Creates a NetworkSceneAsyncOp from a Task. | |
Public Attributes | |
| readonly SceneRef | SceneRef |
| The scene reference of the operation. | |
Properties | |
| Exception | Error [get] |
| Attached error to the operation. | |
| bool | IsDone [get] |
| Signals if the operation is done. | |
| bool | IsValid [get] |
| Signals if the operation is valid. | |
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 |