Base class for all attributes that can be used to load QuantumGlobalScriptableObject. Attributes need to be registered at the assembly level. For instance, this snippet is used to register a default loader, that attempts to load from Resources based on QuantumGlobalScriptableObjectAttribute.DefaultPath: More...
Public Member Functions | |||
QuantumGlobalScriptableObjectSourceAttribute (Type objectType) | |||
| |||
abstract QuantumGlobalScriptableObjectLoadResult | Load (Type type) | ||
Attempt to load the object of the specified type. Return default if the object cannot be loaded. More... | |||
Properties | |
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... | |
Base class for all attributes that can be used to load QuantumGlobalScriptableObject. Attributes need to be registered at the assembly level. For instance, this snippet is used to register a default loader, that attempts to load from Resources based on QuantumGlobalScriptableObjectAttribute.DefaultPath:
[assembly: Quantum.QuantumGlobalScriptableObjectResource(typeof(Quantum.QuantumGlobalScriptableObject), Order = 2000, AllowFallback = true)]
|
pure virtual |
Attempt to load the object of the specified type. Return default
if the object cannot be loaded.
type | The requested type |
Implemented in Quantum.QuantumGlobalScriptableObjectResourceAttribute, and Quantum.QuantumGlobalScriptableObjectAddressAttribute.
|
get |
Type or the base type of QuantumGlobalScriptableObject that this loader supports.
|
getset |
Order in which this loader will be executed. Lower values are executed first.
|
getset |
Can this loader be used in edit mode.
|
getset |
Does this loader allow fallback to the next loader?