A wrapper around Unity's custom dependencies. Allows refresh to be deferred (if circumstances permit) and works around issues with custom dependencies in MPPM. More...
Public Member Functions | |
QuantumCustomDependency (string name, Func< Hash128?> getter) | |
void | Refresh (bool forceImmediate=false) |
Refreshes the dependency. Under normal circumstances, this will enqueue the operation until the next EditorApplication.delayCall. The hash will be calculated immediately if any of these is true: More... | |
Public Attributes | |
readonly string | Name |
Name of the dependency. More... | |
Static Public Attributes | |
static bool | IsGlobalImmediateRefreshEnabled = false |
Global force immediate switch. Set to true to force all the refreshes to be synchronous. More... | |
A wrapper around Unity's custom dependencies. Allows refresh to be deferred (if circumstances permit) and works around issues with custom dependencies in MPPM.
|
inline |
name | Name of the dependency |
getter | Hash value getter. If returns null, the dependency will not be updated. |
|
inline |
Refreshes the dependency. Under normal circumstances, this will enqueue the operation until the next EditorApplication.delayCall. The hash will be calculated immediately if any of these is true:
Note that if AssetDatabase.IsAssetImportWorkerProcess returns true, the immediate refresh will result with an error.
forceImmediate |
readonly string Quantum.Editor.QuantumCustomDependency.Name |
Name of the dependency.
|
static |
Global force immediate switch. Set to true to force all the refreshes to be synchronous.