Photon Quantum 3.0.0

Public Member Functions | Properties | List of all members
Quantum.QuantumGlobalScriptableObjectAddressAttribute Class Reference

If applied at the assembly level, allows QuantumGlobalScriptableObject<T> to be loaded with Addressables. More...

Inheritance diagram for Quantum.QuantumGlobalScriptableObjectAddressAttribute:
Quantum.QuantumGlobalScriptableObjectSourceAttribute

Public Member Functions

 QuantumGlobalScriptableObjectAddressAttribute (Type objectType, string address)
 
override QuantumGlobalScriptableObjectLoadResult Load (Type type)
 Loads the asset from the Address. Uses WaitForCompletion internally, so platforms that do not support it need to preload the address prior to loading. More...
 
- Public Member Functions inherited from Quantum.QuantumGlobalScriptableObjectSourceAttribute
 QuantumGlobalScriptableObjectSourceAttribute (Type objectType)
 
Parameters
objectTypeType or the base type of QuantumGlobalScriptableObject that this loader supports.

 

Properties

string Address [get]
 The address to load from. More...
 
- Properties inherited from Quantum.QuantumGlobalScriptableObjectSourceAttribute
bool AllowEditMode = false [get, set]
 Can this loader be used in edit mode. More...
 
bool AllowFallback = false [get, set]
 Does this loader allow fallback to the next loader? More...
 
Type ObjectType [get]
 Type or the base type of QuantumGlobalScriptableObject that this loader supports. More...
 
int Order [get, set]
 Order in which this loader will be executed. Lower values are executed first. More...
 

Detailed Description

If applied at the assembly level, allows QuantumGlobalScriptableObject<T> to be loaded with Addressables.

Constructor & Destructor Documentation

◆ QuantumGlobalScriptableObjectAddressAttribute()

Quantum.QuantumGlobalScriptableObjectAddressAttribute.QuantumGlobalScriptableObjectAddressAttribute ( Type  objectType,
string  address 
)
inline
Parameters
objectTypeThe type this attribute will attempt to load.
addressThe address to load from.

Member Function Documentation

◆ Load()

override QuantumGlobalScriptableObjectLoadResult Quantum.QuantumGlobalScriptableObjectAddressAttribute.Load ( Type  type)
inlinevirtual

Loads the asset from the Address. Uses WaitForCompletion internally, so platforms that do not support it need to preload the address prior to loading.

Implements Quantum.QuantumGlobalScriptableObjectSourceAttribute.

Property Documentation

◆ Address

string Quantum.QuantumGlobalScriptableObjectAddressAttribute.Address
get

The address to load from.