Utility methods for working with QuantumGlobalScriptableObject. More...
Static Public Member Functions | |
static bool | EnsureAssetExists< T > () |
If the global asset does not exist, creates it based on the type's QuantumGlobalScriptableObjectAttribute. More... | |
static string | GetGlobalAssetPath< T > () |
Locates the asset that is going to be used as a global asset for the given type, that is an asset marked with the GlobalAssetLabel label. If there are multiple such assets, exception is thrown. If there are no such assets, empty string is returned. More... | |
static void | SetDirty (this QuantumGlobalScriptableObject obj) |
Calls EditorUtility.SetDirty(UnityEngine.Object) on the object. More... | |
static bool | TryGetGlobalAssetPath< T > (out string path) |
A wrapper around GetGlobalAssetPath<T> that returns a value indicating if it was able to find the asset. More... | |
static bool | TryImportGlobal< T > () |
Attempts to import the global asset for the given type. More... | |
Static Public Attributes | |
const string | GlobalAssetLabel = "QuantumDefaultGlobal" |
The label that is assigned to global assets. More... | |
Utility methods for working with QuantumGlobalScriptableObject.
|
inlinestatic |
Calls EditorUtility.SetDirty(UnityEngine.Object) on the object.
obj |
|
inlinestatic |
Locates the asset that is going to be used as a global asset for the given type, that is an asset marked with the GlobalAssetLabel label. If there are multiple such assets, exception is thrown. If there are no such assets, empty string is returned.
T | : | QuantumGlobalScriptableObject<T> |
|
inlinestatic |
A wrapper around GetGlobalAssetPath<T> that returns a value indicating if it was able to find the asset.
path |
T |
true
if the asset was foundT | : | QuantumGlobalScriptableObject<T> |
|
inlinestatic |
If the global asset does not exist, creates it based on the type's QuantumGlobalScriptableObjectAttribute.
T |
true
If the asset already existed.T | : | QuantumGlobalScriptableObject<T> |
|
inlinestatic |
Attempts to import the global asset for the given type.
T |
true
if the asset was found and reimportedT | : | QuantumGlobalScriptableObject<T> |
|
static |
The label that is assigned to global assets.