Photon Fusion 2.0.3

Public Member Functions | Public Attributes | Properties | List of all members
NetworkSpawnOp.Awaiter Struct Reference

Awaiter for NetworkSpawnOp More...

Inherits INotifyCompletion.

Public Member Functions

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

Public Attributes

NetworkSpawnOp _op
 

Properties

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

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

Property Documentation

◆ IsCompleted

bool IsCompleted
get

Returns true if the Spawn Operation is completed