|
static void | Append (this ref Hash128 hash, AssetGuid guid) |
| Appends the AssetGuid to the hash. More...
|
|
static unsafe AssetGuid | CreateDeterministicAssetGuid (GUID unityAssetGuid, long fileID) |
| Create a deterministic AssetGuid for a Unity GUID and a FileID. More...
|
|
static AssetGuid | CreateDeterministicAssetGuid (LazyLoadReference< UnityEngine.Object > asset) |
| Create a deterministic AssetGuid for the given asset, based on its Unity GUID and FileID. More...
|
|
static bool | ExportAsJson () |
| Export the global DB to a JSON file. A dialog is shown to select the file. More...
|
|
static void | ExportAsJson (string path) |
| Export the global DB to a JSON file with QuantumUnityJsonSerializer. None of the asset will have its AssetObject.Loaded called, as they are loaded with IQuantumAssetObjectSource.EditorInstance. More...
|
|
static AssetGuid | GetExpectedAssetGuid (GUID guid, long fileId, out bool isOverride) |
| Returns the expected AssetGuid for the given Unity asset GUID and FileID. If an override is set, it will be returned instead. More...
|
|
static AssetGuid | GetExpectedAssetGuid (LazyLoadReference< UnityEngine.Object > asset, out bool isOverride) |
| Returns the expected AssetGuid for the given asset. If an override is set, it will be returned instead. More...
|
|
static string | GetGlobalDBPath () |
| Returns the default path to the QuantumUnityDB asset. More...
|
|
static bool | IsAssetGuidOverriden (LazyLoadReference< UnityEngine.Object > asset) |
| Returns true if the given asset has an AssetGuid override set. More...
|
|
static AssetDatabaseUtils.AssetEnumerable | IterateAssets () |
| Enumerates AssetObject assets with AssetLabel label. More...
|
|
static void | RefreshGlobalDB (bool force=false) |
| Refreshes the global Quantum Unity DB. If force is false, an update will only happen if the hash calculated with assets under AssetLabel label has changed. If force is true, a refresh will be performed regardless. More...
|
|
static AssetGuid | RemoveAssetGuidOverride (GUID guid, long fileId) |
| Removes the AssetGuid override for the given asset. More...
|
|
static bool | SetAssetGuidOverride (LazyLoadReference< UnityEngine.Object > asset, AssetGuid assetGuid) |
| Sets the AssetGuid override for the given asset. If the override is already set, it will be replaced. If assetGuid is AssetGuid.Invalid, the override will be removed. More...
|
|
static void | SetQuantumUnityDBRefreshMode (bool immediate) |
| Sets the Quantum Unity DB refresh mode. By default, after an asset with AssetLabel is imported, a call to QuantumUnityDBImporter.RefreshAssetObjectHash is scheduled. When running in batch mode, it may result in the hash never being refreshed and the global QuantumUnityDB not being updated. To prevent this, call this method with immediate set to true. More...
|
|
QuantumUnityDB Editor utilities.