Photon Fusion 2.1.1

NetworkSpawnOp.Awaiter Struct Reference

Awaiter for NetworkSpawnOp. More...

Public Member Functions

 Awaiter (in NetworkSpawnOp op)
 Awaiter Constructor.
NetworkObject GetResult ()
 Get the result of the Spawn Operation.
void OnCompleted (Action continuation)
 Awaiter OnCompleted Callback.

Properties

readonly bool IsCompleted [get]
 Returns true if the Spawn Operation is completed.

Detailed Description

Awaiter for NetworkSpawnOp.

Constructor & Destructor Documentation

◆ Awaiter()

Awaiter ( in NetworkSpawnOp op)

Awaiter Constructor.

Parameters
opSpawn Operation

Member Function Documentation

◆ GetResult()

NetworkObject GetResult ( )

Get the result of the Spawn Operation.

Returns
Spawned Network Object
Exceptions
NetworkObjectSpawnExceptionThrown if the Spawn Operation failed

◆ OnCompleted()

void OnCompleted ( Action continuation)

Awaiter OnCompleted Callback.

Parameters
continuationContinuation Action
Exceptions
NotSupportedExceptionThrown if the Spawn Operation is not supported