|
static string | GetAssetGuidOrThrow (int instanceId) |
| Returns the asset GUID for the given instance ID or throws an exception if the asset is not found. More...
|
|
static string | GetAssetGuidOrThrow (string assetPath) |
| Returns the asset GUID for the given asset path or throws an exception if the asset is not found. More...
|
|
static string | GetAssetGuidOrThrow (UnityEngine.Object obj) |
| Returns the asset GUID for the given object reference or throws an exception if the asset is not found. More...
|
|
static string | GetAssetPathOrThrow (int instanceID) |
| Returns the asset path for the given instance ID or throws an exception if the asset is not found. More...
|
|
static string | GetAssetPathOrThrow (string assetGuid) |
| Returns the asset path for the given asset GUID or throws an exception if the asset is not found. More...
|
|
static string | GetAssetPathOrThrow (UnityEngine.Object obj) |
| Returns the asset path for the given object or throws an exception if obj is not an asset. More...
|
|
static bool | HasAnyLabel (string assetPath, params string[] labels) |
| Returns true if the asset at assetPath has any of the given labels . More...
|
|
static bool | HasAnyLabel (UnityEngine.Object asset, params string[] labels) |
| Returns true if the asset has any of the given labels . More...
|
|
static bool | HasLabel (GUID guid, string label) |
| Returns true if the asset guid has the given label . More...
|
|
static bool | HasLabel (string assetPath, string label) |
| Returns true if the asset at assetPath has the given label . More...
|
|
static bool | HasLabel (UnityEngine.Object obj, string label) |
| Returns true if the asset obj has the given label . More...
|
|
static bool | HasScriptingDefineSymbol (BuildTargetGroup group, string value) |
| Checks if a scripting define value is defined for group . More...
|
|
static bool | HasScriptingDefineSymbol (NamedBuildTarget target, string value) |
| Checks if a scripting define value is defined for target . More...
|
|
static ? bool | HasScriptingDefineSymbol (string value) |
| Checks if any and all BuildTargetGroup have the given scripting define symbol. More...
|
|
static AssetEnumerable | IterateAssets (string root=null, string label=null, Type type=null) |
| Iterates over all assets in the project that match the given search criteria, without actually loading them. More...
|
|
static AssetEnumerable | IterateAssets< T > (string root=null, string label=null) |
| Iterates over all assets in the project that match the given search criteria, without actually loading them. More...
|
|
static void | MoveAssetOrThrow (string source, string destination) |
| Moves the asset at source to destination or throws an exception if the move fails. More...
|
|
static void | RegisterCustomDependencyWithMppmWorkaround (string customDependency, Hash128 hash) |
| Sends out QuantumMppmRegisterCustomDependencyCommand command to virtual peers before calling AssetDatabase.RegisterCustomDependency. More...
|
|
static void | SetAssetAndTheMainAssetDirty (UnityEngine.Object obj) |
| Sets the asset dirty and, if is a sub-asset, also sets the main asset dirty. More...
|
|
static bool | SetLabel (string assetPath, string label, bool present) |
| Sets or unsets label label for the asset at assetPath , depending on the value of present . More...
|
|
static bool | SetLabel (UnityEngine.Object obj, string label, bool present) |
| Sets or unsets the label label for the asset obj , depending on the value of present . More...
|
|
static bool | SetLabels (string assetPath, string[] labels) |
| Sets all the labels for the asset at assetPath . More...
|
|
static ScriptableObject | SetScriptableObjectType (ScriptableObject obj, Type type) |
| Changes the type of scriptable object. More...
|
|
static T | SetScriptableObjectType< T > (ScriptableObject obj) |
|
static void | UpdateScriptingDefineSymbol (BuildTargetGroup group, string define, bool enable) |
| Adds or removes define scripting define symbol from group , depending on the value of enable More...
|
|
static void | UpdateScriptingDefineSymbol (string define, bool enable) |
| Adds or removes define from all BuildTargetGroups, depending on the value of enable More...
|
|
Utility methods for working with Unity's AssetDatabase