Base class for all attributes that can be used to load FusionGlobalScriptableObject. 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 FusionGlobalScriptableObjectAttribute.DefaultPath:
More...
Inherits Attribute.
Base class for all attributes that can be used to load FusionGlobalScriptableObject. 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 FusionGlobalScriptableObjectAttribute.DefaultPath:
[assembly: Fusion.FusionGlobalScriptableObjectResource(typeof(Fusion.FusionGlobalScriptableObject), Order = 2000, AllowFallback = true)]
◆ Load()
Attempt to load the object of the specified type. Return default
if the object cannot be loaded.
- Parameters
-
◆ AllowEditMode
bool AllowEditMode = false |
|
getset |
Can this loader be used in edit mode.
◆ AllowFallback
bool AllowFallback = false |
|
getset |
Does this loader allow fallback to the next loader?
◆ ObjectType
◆ Order
Order in which this loader will be executed. Lower values are executed first.