Photon Quantum 3.0.0

Public Member Functions | Public Attributes | Properties | List of all members
Quantum.QuantumAssetSourceStatic< T > Class Template Reference

Hard reference-based implementation of the asset source pattern. This asset source forms a hard reference to the asset and never releases it. This type is meant to be used at runtime. For edit-time, prefer QuantumAssetSourceStaticLazy<T>, as it delays actually loading the asset, improving the editor performance. More...

Public Member Functions

void Acquire (bool synchronous)
 Does nothing, the asset is always loaded. More...
 
void Release ()
 Does nothing, the asset is always loaded. More...
 
WaitForResult ()
 Returns

See also
Object

or throws an exception if the reference is missing. More...

 

Public Attributes

bool IsCompleted => true
 Returns true. More...
 
Object
 The asset reference. Can point to an asset or to a runtime-created object. More...
 

Properties

string Description [get]
 
Prefab [get, set]
 Object
 

Detailed Description

Hard reference-based implementation of the asset source pattern. This asset source forms a hard reference to the asset and never releases it. This type is meant to be used at runtime. For edit-time, prefer QuantumAssetSourceStaticLazy<T>, as it delays actually loading the asset, improving the editor performance.

Template Parameters
T
Type Constraints
T :UnityEngine.Object 

Member Function Documentation

◆ Acquire()

void Quantum.QuantumAssetSourceStatic< T >.Acquire ( bool  synchronous)
inline

Does nothing, the asset is always loaded.

◆ Release()

void Quantum.QuantumAssetSourceStatic< T >.Release ( )
inline

Does nothing, the asset is always loaded.

◆ WaitForResult()

T Quantum.QuantumAssetSourceStatic< T >.WaitForResult ( )
inline

Returns

See also
Object

or throws an exception if the reference is missing.

Member Data Documentation

◆ Object

The asset reference. Can point to an asset or to a runtime-created object.

◆ IsCompleted

bool Quantum.QuantumAssetSourceStatic< T >.IsCompleted => true

Returns true.