Photon Fusion 2.1.1

INetworkAssetSource< T > Interface Template Reference

Interface for a network asset source. More...

Inherited by INetworkPrefabSource.

Public Member Functions

void Acquire (bool synchronous)
 Acquires the network asset.
void Release ()
 Releases the network asset.
T WaitForResult ()
 Waits for the result of the network asset acquisition.

Properties

string Description [get]
 Gets the description of the network asset.
bool IsCompleted [get]
 Checks if the network asset acquisition is completed.

Detailed Description

Interface for a network asset source.

Template Parameters
TType of the network asset.

Member Function Documentation

◆ Acquire()

void Acquire ( bool synchronous)

Acquires the network asset.

Parameters
synchronousIf true, the acquisition is done synchronously.

◆ WaitForResult()

T WaitForResult ( )

Waits for the result of the network asset acquisition.

Returns
The network asset.