mirror of
https://github.com/yasirkula/UnityAssetUsageDetector.git
synced 2026-11-20 23:12:38 +08:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1a2eba24bd | |||
| cf0fea56ab | |||
| 956aea1ced | |||
| 466a152ba6 | |||
| 5eda0c1cb0 | |||
| 42e3278129 | |||
| f6a999f053 | |||
| 8441e4701c |
Binary file not shown.
|
Before Width: | Height: | Size: 20 KiB |
+1
-14
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
**Discord:** https://discord.gg/UJJt549AaV
|
**Discord:** https://discord.gg/UJJt549AaV
|
||||||
|
|
||||||
**[Support the Developer ☕](https://yasirkula.itch.io/unity3d)**
|
**[GitHub Sponsors ☕](https://github.com/sponsors/yasirkula)**
|
||||||
|
|
||||||
## ABOUT
|
## ABOUT
|
||||||
|
|
||||||
@@ -37,18 +37,6 @@ There are 5 ways to install this plugin:
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
## ADDRESSABLES SUPPORT
|
|
||||||
|
|
||||||
This plugin has experimental support for *Addressables* package. However, the search may take significantly longer to finish when Addressables are searched. Some manual modifications are needed to enable Addressables support:
|
|
||||||
|
|
||||||
- The plugin mustn't be installed as a package, i.e. it must reside inside the *Assets* folder and not the *Packages* folder (it can reside inside a subfolder of Assets like *Assets/Plugins*)
|
|
||||||
- Modify the **AssetUsageDetector.Editor** Assembly Definition File as follows:
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
- If *Version Defines* isn't present (on older Unity versions), manually add `ASSET_USAGE_ADDRESSABLES` compiler directive to **Player Settings/Scripting Define Symbols** (these symbols are platform specific, so if you change the active platform later, you'll have to add the compiler directive again)
|
|
||||||
- Enable the "Addressables support" option in Asset Usage Detector window
|
|
||||||
|
|
||||||
## SEARCH REFACTORING
|
## SEARCH REFACTORING
|
||||||
|
|
||||||
While searching for references using the Scripting API, it's possible to get notified of the found references *during* the search (some references like *Assembly Definition File* references or *Shader Graph* references aren't supported) and in most cases, refactor them (e.g. changing all usages of a searched object with something else or *null*). Disabling *Lazy Scene Search* is recommended while using this feature and it's advised to backup your project beforehand.
|
While searching for references using the Scripting API, it's possible to get notified of the found references *during* the search (some references like *Assembly Definition File* references or *Shader Graph* references aren't supported) and in most cases, refactor them (e.g. changing all usages of a searched object with something else or *null*). Disabling *Lazy Scene Search* is recommended while using this feature and it's advised to backup your project beforehand.
|
||||||
@@ -78,7 +66,6 @@ void ReplaceFontUsages( Font from, Font to )
|
|||||||
|
|
||||||
## KNOWN LIMITATIONS
|
## KNOWN LIMITATIONS
|
||||||
|
|
||||||
- *Addressables* aren't supported
|
|
||||||
- *static* variables aren't searched
|
- *static* variables aren't searched
|
||||||
- *Resources.Load* usages can't be found
|
- *Resources.Load* usages can't be found
|
||||||
- *GUIText* materials aren't searched
|
- *GUIText* materials aren't searched
|
||||||
|
|||||||
@@ -1,6 +1,9 @@
|
|||||||
{
|
{
|
||||||
"name": "AssetUsageDetector.Editor",
|
"name": "AssetUsageDetector.Editor",
|
||||||
"references": [],
|
"rootNamespace": "",
|
||||||
|
"references": [
|
||||||
|
"Unity.Addressables"
|
||||||
|
],
|
||||||
"includePlatforms": [
|
"includePlatforms": [
|
||||||
"Editor"
|
"Editor"
|
||||||
],
|
],
|
||||||
@@ -10,6 +13,17 @@
|
|||||||
"precompiledReferences": [],
|
"precompiledReferences": [],
|
||||||
"autoReferenced": true,
|
"autoReferenced": true,
|
||||||
"defineConstraints": [],
|
"defineConstraints": [],
|
||||||
"versionDefines": [],
|
"versionDefines": [
|
||||||
|
{
|
||||||
|
"name": "com.unity.addressables",
|
||||||
|
"expression": "0.0.0",
|
||||||
|
"define": "ASSET_USAGE_ADDRESSABLES"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "com.unity.visualeffectgraph",
|
||||||
|
"expression": "0.0.0",
|
||||||
|
"define": "ASSET_USAGE_VFX_GRAPH"
|
||||||
|
}
|
||||||
|
],
|
||||||
"noEngineReferences": false
|
"noEngineReferences": false
|
||||||
}
|
}
|
||||||
@@ -985,9 +985,13 @@ namespace AssetUsageDetectorNamespace
|
|||||||
if( obj == null || obj.Equals( null ) )
|
if( obj == null || obj.Equals( null ) )
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
// Avoid recursion (which leads to stackoverflow exception) using a stack
|
// Avoid recursion (which leads to stackoverflow exception) using a stack (initially, I was using callStack.ContainsFast
|
||||||
if( callStack.ContainsFast( obj ) )
|
// here but it returned false for objects that do exist in the call stack if VFX Graph window was open)
|
||||||
return null;
|
for( int i = callStack.Count - 1; i >= 0; i-- )
|
||||||
|
{
|
||||||
|
if( callStack[i].Equals( obj ) )
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
bool searchingSourceAsset = searchingSourceAssets && ReferenceEquals( currentSearchedObject, obj );
|
bool searchingSourceAsset = searchingSourceAssets && ReferenceEquals( currentSearchedObject, obj );
|
||||||
|
|
||||||
@@ -1027,7 +1031,7 @@ namespace AssetUsageDetectorNamespace
|
|||||||
callStack.Add( unityObject );
|
callStack.Add( unityObject );
|
||||||
|
|
||||||
// Search the Object in detail
|
// Search the Object in detail
|
||||||
Func<Object, ReferenceNode> searchFunction;
|
Func<object, ReferenceNode> searchFunction;
|
||||||
if( assetPath != null && extensionToSearchFunction.TryGetValue( Utilities.GetFileExtension( assetPath ), out searchFunction ) && AssetDatabase.IsMainAsset( unityObject ) )
|
if( assetPath != null && extensionToSearchFunction.TryGetValue( Utilities.GetFileExtension( assetPath ), out searchFunction ) && AssetDatabase.IsMainAsset( unityObject ) )
|
||||||
result = searchFunction( unityObject );
|
result = searchFunction( unityObject );
|
||||||
else if( typeToSearchFunction.TryGetValue( unityObject.GetType(), out searchFunction ) )
|
else if( typeToSearchFunction.TryGetValue( unityObject.GetType(), out searchFunction ) )
|
||||||
|
|||||||
@@ -161,9 +161,9 @@ namespace AssetUsageDetectorNamespace
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
// Dictionary to quickly find the function to search a specific type with
|
// Dictionary to quickly find the function to search a specific type with
|
||||||
private Dictionary<Type, Func<Object, ReferenceNode>> typeToSearchFunction;
|
private Dictionary<Type, Func<object, ReferenceNode>> typeToSearchFunction;
|
||||||
// Dictionary to associate special file extensions with their search functions
|
// Dictionary to associate special file extensions with their search functions
|
||||||
private Dictionary<string, Func<Object, ReferenceNode>> extensionToSearchFunction;
|
private Dictionary<string, Func<object, ReferenceNode>> extensionToSearchFunction;
|
||||||
|
|
||||||
// An optimization to fetch & filter fields and properties of a class only once
|
// An optimization to fetch & filter fields and properties of a class only once
|
||||||
private readonly Dictionary<Type, VariableGetterHolder[]> typeToVariables = new Dictionary<Type, VariableGetterHolder[]>( 4096 );
|
private readonly Dictionary<Type, VariableGetterHolder[]> typeToVariables = new Dictionary<Type, VariableGetterHolder[]>( 4096 );
|
||||||
@@ -199,19 +199,28 @@ namespace AssetUsageDetectorNamespace
|
|||||||
|
|
||||||
// Unity's internal function that returns a SerializedProperty's corresponding FieldInfo
|
// Unity's internal function that returns a SerializedProperty's corresponding FieldInfo
|
||||||
private delegate FieldInfo FieldInfoGetter( SerializedProperty p, out Type t );
|
private delegate FieldInfo FieldInfoGetter( SerializedProperty p, out Type t );
|
||||||
private FieldInfoGetter fieldInfoGetter;
|
#if UNITY_2019_3_OR_NEWER
|
||||||
|
private readonly FieldInfoGetter fieldInfoGetter = (FieldInfoGetter) Delegate.CreateDelegate( typeof( FieldInfoGetter ), typeof( Editor ).Assembly.GetType( "UnityEditor.ScriptAttributeUtility" ).GetMethod( "GetFieldInfoAndStaticTypeFromProperty", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static ) );
|
||||||
|
#else
|
||||||
|
private readonly FieldInfoGetter fieldInfoGetter = (FieldInfoGetter) Delegate.CreateDelegate( typeof( FieldInfoGetter ), typeof( Editor ).Assembly.GetType( "UnityEditor.ScriptAttributeUtility" ).GetMethod( "GetFieldInfoFromProperty", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static ) );
|
||||||
|
#endif
|
||||||
|
|
||||||
#if ASSET_USAGE_ADDRESSABLES
|
#if ASSET_USAGE_ADDRESSABLES
|
||||||
private delegate Sprite[] SpriteAtlasPackedSpritesGetter( SpriteAtlas atlas );
|
private readonly Func<SpriteAtlas, Sprite[]> spriteAtlasPackedSpritesGetter = (Func<SpriteAtlas, Sprite[]>) Delegate.CreateDelegate( typeof( Func<SpriteAtlas, Sprite[]> ), typeof( SpriteAtlasExtensions ).GetMethod( "GetPackedSprites", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static ) );
|
||||||
private SpriteAtlasPackedSpritesGetter spriteAtlasPackedSpritesGetter;
|
private readonly PropertyInfo assetReferenceSubObjectTypeGetter = typeof( AssetReference ).GetProperty( "SubOjbectType", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance );
|
||||||
private PropertyInfo assetReferenceSubObjectTypeGetter;
|
#endif
|
||||||
|
|
||||||
|
#if ASSET_USAGE_VFX_GRAPH
|
||||||
|
private readonly Func<string, object> vfxResourceGetter = (Func<string, object>) Delegate.CreateDelegate( typeof( Func<string, object> ), typeof( Editor ).Assembly.GetType( "UnityEditor.VFX.VisualEffectResource" ).GetMethod( "GetResourceAtPath", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static ) );
|
||||||
|
private readonly MethodInfo vfxResourceContentsGetter = typeof( Editor ).Assembly.GetType( "UnityEditor.VFX.VisualEffectResource" ).GetMethod( "GetContents", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance );
|
||||||
|
private readonly MethodInfo vfxSerializableObjectValueGetter = Array.Find( Array.Find( AppDomain.CurrentDomain.GetAssemblies(), ( assembly ) => assembly.GetName().Name == "Unity.VisualEffectGraph.Editor" ).GetType( "UnityEditor.VFX.VFXSerializableObject" ).GetMethods( BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance ), ( methodInfo ) => methodInfo.Name == "Get" && !methodInfo.IsGenericMethod );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
private void InitializeSearchFunctionsData( Parameters searchParameters )
|
private void InitializeSearchFunctionsData( Parameters searchParameters )
|
||||||
{
|
{
|
||||||
if( typeToSearchFunction == null )
|
if( typeToSearchFunction == null )
|
||||||
{
|
{
|
||||||
typeToSearchFunction = new Dictionary<Type, Func<Object, ReferenceNode>>()
|
typeToSearchFunction = new Dictionary<Type, Func<object, ReferenceNode>>()
|
||||||
{
|
{
|
||||||
{ typeof( GameObject ), SearchGameObject },
|
{ typeof( GameObject ), SearchGameObject },
|
||||||
{ typeof( Material ), SearchMaterial },
|
{ typeof( Material ), SearchMaterial },
|
||||||
@@ -234,7 +243,7 @@ namespace AssetUsageDetectorNamespace
|
|||||||
|
|
||||||
if( extensionToSearchFunction == null )
|
if( extensionToSearchFunction == null )
|
||||||
{
|
{
|
||||||
extensionToSearchFunction = new Dictionary<string, Func<Object, ReferenceNode>>()
|
extensionToSearchFunction = new Dictionary<string, Func<object, ReferenceNode>>()
|
||||||
{
|
{
|
||||||
{ "compute", SearchShaderSecondaryAsset },
|
{ "compute", SearchShaderSecondaryAsset },
|
||||||
{ "cginc", SearchShaderSecondaryAsset },
|
{ "cginc", SearchShaderSecondaryAsset },
|
||||||
@@ -250,6 +259,11 @@ namespace AssetUsageDetectorNamespace
|
|||||||
#if UNITY_2018_1_OR_NEWER
|
#if UNITY_2018_1_OR_NEWER
|
||||||
{ "shadergraph", SearchShaderGraph },
|
{ "shadergraph", SearchShaderGraph },
|
||||||
{ "shadersubgraph", SearchShaderGraph },
|
{ "shadersubgraph", SearchShaderGraph },
|
||||||
|
#endif
|
||||||
|
#if ASSET_USAGE_VFX_GRAPH
|
||||||
|
{ "vfx", SearchVFXGraphAsset },
|
||||||
|
{ "vfxoperator", SearchVFXGraphAsset },
|
||||||
|
{ "vfxblock", SearchVFXGraphAsset },
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
@@ -271,6 +285,9 @@ namespace AssetUsageDetectorNamespace
|
|||||||
#if UNITY_2018_1_OR_NEWER
|
#if UNITY_2018_1_OR_NEWER
|
||||||
searchShaderGraphsForSubGraphs = false;
|
searchShaderGraphsForSubGraphs = false;
|
||||||
#endif
|
#endif
|
||||||
|
#if ASSET_USAGE_VFX_GRAPH
|
||||||
|
bool searchVFXGraphs = false;
|
||||||
|
#endif
|
||||||
|
|
||||||
foreach( Object obj in objectsToSearchSet )
|
foreach( Object obj in objectsToSearchSet )
|
||||||
{
|
{
|
||||||
@@ -292,6 +309,10 @@ namespace AssetUsageDetectorNamespace
|
|||||||
#if UNITY_2017_3_OR_NEWER
|
#if UNITY_2017_3_OR_NEWER
|
||||||
else if( obj is UnityEditorInternal.AssemblyDefinitionAsset )
|
else if( obj is UnityEditorInternal.AssemblyDefinitionAsset )
|
||||||
assemblyDefinitionFilesToSearch[AssetDatabase.GetAssetPath( obj )] = obj;
|
assemblyDefinitionFilesToSearch[AssetDatabase.GetAssetPath( obj )] = obj;
|
||||||
|
#endif
|
||||||
|
#if ASSET_USAGE_VFX_GRAPH
|
||||||
|
else if( !searchVFXGraphs && ( obj is Shader || obj is Mesh || obj.GetType().Name.StartsWithFast( "PointCache" ) || obj.GetType().Name == "ShaderGraphVfxAsset" ) )
|
||||||
|
searchVFXGraphs = true;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -349,23 +370,19 @@ namespace AssetUsageDetectorNamespace
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if UNITY_2019_3_OR_NEWER
|
#if ASSET_USAGE_VFX_GRAPH
|
||||||
MethodInfo fieldInfoGetterMethod = typeof( Editor ).Assembly.GetType( "UnityEditor.ScriptAttributeUtility" ).GetMethod( "GetFieldInfoAndStaticTypeFromProperty", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static );
|
if( searchTextureReferences || searchVFXGraphs )
|
||||||
#else
|
{
|
||||||
MethodInfo fieldInfoGetterMethod = typeof( Editor ).Assembly.GetType( "UnityEditor.ScriptAttributeUtility" ).GetMethod( "GetFieldInfoFromProperty", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static );
|
alwaysSearchedExtensionsSet.Add( "vfx" );
|
||||||
#endif
|
alwaysSearchedExtensionsSet.Add( "vfxoperator" );
|
||||||
fieldInfoGetter = (FieldInfoGetter) Delegate.CreateDelegate( typeof( FieldInfoGetter ), fieldInfoGetterMethod );
|
alwaysSearchedExtensionsSet.Add( "vfxblock" );
|
||||||
|
}
|
||||||
#if ASSET_USAGE_ADDRESSABLES
|
|
||||||
MethodInfo spriteAtlasPackedSpritesGetterMethod = typeof( SpriteAtlasExtensions ).GetMethod( "GetPackedSprites", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Static );
|
|
||||||
spriteAtlasPackedSpritesGetter = (SpriteAtlasPackedSpritesGetter) Delegate.CreateDelegate( typeof( SpriteAtlasPackedSpritesGetter ), spriteAtlasPackedSpritesGetterMethod );
|
|
||||||
assetReferenceSubObjectTypeGetter = typeof( AssetReference ).GetProperty( "SubOjbectType", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance );
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
private ReferenceNode SearchGameObject( Object unityObject )
|
private ReferenceNode SearchGameObject( object obj )
|
||||||
{
|
{
|
||||||
GameObject go = (GameObject) unityObject;
|
GameObject go = (GameObject) obj;
|
||||||
ReferenceNode referenceNode = PopReferenceNode( go );
|
ReferenceNode referenceNode = PopReferenceNode( go );
|
||||||
|
|
||||||
// Check if this GameObject's prefab is one of the selected assets
|
// Check if this GameObject's prefab is one of the selected assets
|
||||||
@@ -397,9 +414,9 @@ namespace AssetUsageDetectorNamespace
|
|||||||
return referenceNode;
|
return referenceNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
private ReferenceNode SearchComponent( Object unityObject )
|
private ReferenceNode SearchComponent( object obj )
|
||||||
{
|
{
|
||||||
Component component = (Component) unityObject;
|
Component component = (Component) obj;
|
||||||
|
|
||||||
// Ignore Transform component (no object field to search for)
|
// Ignore Transform component (no object field to search for)
|
||||||
if( component is Transform )
|
if( component is Transform )
|
||||||
@@ -610,11 +627,11 @@ namespace AssetUsageDetectorNamespace
|
|||||||
return referenceNode;
|
return referenceNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
private ReferenceNode SearchMaterial( Object unityObject )
|
private ReferenceNode SearchMaterial( object obj )
|
||||||
{
|
{
|
||||||
const string TEXTURE_PROPERTY_PREFIX = "m_SavedProperties.m_TexEnvs[";
|
const string TEXTURE_PROPERTY_PREFIX = "m_SavedProperties.m_TexEnvs[";
|
||||||
|
|
||||||
Material material = (Material) unityObject;
|
Material material = (Material) obj;
|
||||||
ReferenceNode referenceNode = PopReferenceNode( material );
|
ReferenceNode referenceNode = PopReferenceNode( material );
|
||||||
|
|
||||||
// We used to search only the shader and the Texture properties in this function but it has changed for 2 major reasons:
|
// We used to search only the shader and the Texture properties in this function but it has changed for 2 major reasons:
|
||||||
@@ -689,14 +706,14 @@ namespace AssetUsageDetectorNamespace
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Searches default Texture values assigned to shader properties, as well as #include references in shader source code
|
// Searches default Texture values assigned to shader properties, as well as #include references in shader source code
|
||||||
private ReferenceNode SearchShader( Object unityObject )
|
private ReferenceNode SearchShader( object obj )
|
||||||
{
|
{
|
||||||
Shader shader = (Shader) unityObject;
|
Shader shader = (Shader) obj;
|
||||||
ReferenceNode referenceNode = PopReferenceNode( shader );
|
ReferenceNode referenceNode = PopReferenceNode( shader );
|
||||||
|
|
||||||
if( searchTextureReferences )
|
if( searchTextureReferences )
|
||||||
{
|
{
|
||||||
ShaderImporter shaderImporter = AssetImporter.GetAtPath( AssetDatabase.GetAssetPath( unityObject ) ) as ShaderImporter;
|
ShaderImporter shaderImporter = AssetImporter.GetAtPath( AssetDatabase.GetAssetPath( shader ) ) as ShaderImporter;
|
||||||
if( shaderImporter != null )
|
if( shaderImporter != null )
|
||||||
{
|
{
|
||||||
int shaderPropertyCount = ShaderUtil.GetPropertyCount( shader );
|
int shaderPropertyCount = ShaderUtil.GetPropertyCount( shader );
|
||||||
@@ -731,20 +748,20 @@ namespace AssetUsageDetectorNamespace
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Searches .compute, .cginc, .cg, .hlsl and .glslinc assets for #include references
|
// Searches .compute, .cginc, .cg, .hlsl and .glslinc assets for #include references
|
||||||
private ReferenceNode SearchShaderSecondaryAsset( Object unityObject )
|
private ReferenceNode SearchShaderSecondaryAsset( object obj )
|
||||||
{
|
{
|
||||||
if( shaderIncludesToSearchSet.Count == 0 )
|
if( shaderIncludesToSearchSet.Count == 0 )
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
ReferenceNode referenceNode = PopReferenceNode( unityObject );
|
ReferenceNode referenceNode = PopReferenceNode( obj );
|
||||||
SearchShaderSourceCodeForCGIncludes( referenceNode );
|
SearchShaderSourceCodeForCGIncludes( referenceNode );
|
||||||
return referenceNode;
|
return referenceNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Searches class/interface inheritances and default UnityEngine.Object values assigned to script variables
|
// Searches class/interface inheritances and default UnityEngine.Object values assigned to script variables
|
||||||
private ReferenceNode SearchMonoScript( Object unityObject )
|
private ReferenceNode SearchMonoScript( object obj )
|
||||||
{
|
{
|
||||||
MonoScript script = (MonoScript) unityObject;
|
MonoScript script = (MonoScript) obj;
|
||||||
Type scriptType = script.GetClass();
|
Type scriptType = script.GetClass();
|
||||||
if( scriptType == null || ( !scriptType.IsSubclassOf( typeof( MonoBehaviour ) ) && !scriptType.IsSubclassOf( typeof( ScriptableObject ) ) ) )
|
if( scriptType == null || ( !scriptType.IsSubclassOf( typeof( MonoBehaviour ) ) && !scriptType.IsSubclassOf( typeof( ScriptableObject ) ) ) )
|
||||||
return null;
|
return null;
|
||||||
@@ -758,7 +775,7 @@ namespace AssetUsageDetectorNamespace
|
|||||||
referenceNode.AddLinkTo( GetReferenceNode( monoScriptsToSearch[i] ), monoScriptsToSearchTypes[i].IsInterface ? "Implements interface" : "Extends class" );
|
referenceNode.AddLinkTo( GetReferenceNode( monoScriptsToSearch[i] ), monoScriptsToSearchTypes[i].IsInterface ? "Implements interface" : "Extends class" );
|
||||||
}
|
}
|
||||||
|
|
||||||
MonoImporter scriptImporter = AssetImporter.GetAtPath( AssetDatabase.GetAssetPath( unityObject ) ) as MonoImporter;
|
MonoImporter scriptImporter = AssetImporter.GetAtPath( AssetDatabase.GetAssetPath( script ) ) as MonoImporter;
|
||||||
if( scriptImporter != null )
|
if( scriptImporter != null )
|
||||||
{
|
{
|
||||||
VariableGetterHolder[] variables = GetFilteredVariablesForType( scriptType );
|
VariableGetterHolder[] variables = GetFilteredVariablesForType( scriptType );
|
||||||
@@ -781,9 +798,9 @@ namespace AssetUsageDetectorNamespace
|
|||||||
return referenceNode;
|
return referenceNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
private ReferenceNode SearchAnimatorController( Object unityObject )
|
private ReferenceNode SearchAnimatorController( object obj )
|
||||||
{
|
{
|
||||||
RuntimeAnimatorController controller = (RuntimeAnimatorController) unityObject;
|
RuntimeAnimatorController controller = (RuntimeAnimatorController) obj;
|
||||||
ReferenceNode referenceNode = PopReferenceNode( controller );
|
ReferenceNode referenceNode = PopReferenceNode( controller );
|
||||||
|
|
||||||
if( controller is AnimatorController )
|
if( controller is AnimatorController )
|
||||||
@@ -845,9 +862,9 @@ namespace AssetUsageDetectorNamespace
|
|||||||
return referenceNode;
|
return referenceNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
private ReferenceNode SearchAnimatorStateMachine( Object unityObject )
|
private ReferenceNode SearchAnimatorStateMachine( object obj )
|
||||||
{
|
{
|
||||||
AnimatorStateMachine animatorStateMachine = (AnimatorStateMachine) unityObject;
|
AnimatorStateMachine animatorStateMachine = (AnimatorStateMachine) obj;
|
||||||
ReferenceNode referenceNode = PopReferenceNode( animatorStateMachine );
|
ReferenceNode referenceNode = PopReferenceNode( animatorStateMachine );
|
||||||
|
|
||||||
ChildAnimatorStateMachine[] stateMachines = animatorStateMachine.stateMachines;
|
ChildAnimatorStateMachine[] stateMachines = animatorStateMachine.stateMachines;
|
||||||
@@ -877,9 +894,9 @@ namespace AssetUsageDetectorNamespace
|
|||||||
return referenceNode;
|
return referenceNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
private ReferenceNode SearchAnimatorState( Object unityObject )
|
private ReferenceNode SearchAnimatorState( object obj )
|
||||||
{
|
{
|
||||||
AnimatorState animatorState = (AnimatorState) unityObject;
|
AnimatorState animatorState = (AnimatorState) obj;
|
||||||
ReferenceNode referenceNode = PopReferenceNode( animatorState );
|
ReferenceNode referenceNode = PopReferenceNode( animatorState );
|
||||||
|
|
||||||
referenceNode.AddLinkTo( SearchObject( animatorState.motion ), "Motion" );
|
referenceNode.AddLinkTo( SearchObject( animatorState.motion ), "Motion" );
|
||||||
@@ -906,15 +923,15 @@ namespace AssetUsageDetectorNamespace
|
|||||||
return referenceNode;
|
return referenceNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
private ReferenceNode SearchAnimatorStateTransition( Object unityObject )
|
private ReferenceNode SearchAnimatorStateTransition( object obj )
|
||||||
{
|
{
|
||||||
// Don't search AnimatorStateTransition objects, it will just return duplicate results of SearchAnimatorStateMachine
|
// Don't search AnimatorStateTransition objects, it will just return duplicate results of SearchAnimatorStateMachine
|
||||||
return PopReferenceNode( unityObject );
|
return PopReferenceNode( obj );
|
||||||
}
|
}
|
||||||
|
|
||||||
private ReferenceNode SearchBlendTree( Object unityObject )
|
private ReferenceNode SearchBlendTree( object obj )
|
||||||
{
|
{
|
||||||
BlendTree blendTree = (BlendTree) unityObject;
|
BlendTree blendTree = (BlendTree) obj;
|
||||||
ReferenceNode referenceNode = PopReferenceNode( blendTree );
|
ReferenceNode referenceNode = PopReferenceNode( blendTree );
|
||||||
|
|
||||||
ChildMotion[] children = blendTree.children;
|
ChildMotion[] children = blendTree.children;
|
||||||
@@ -929,9 +946,9 @@ namespace AssetUsageDetectorNamespace
|
|||||||
return referenceNode;
|
return referenceNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
private ReferenceNode SearchAnimationClip( Object unityObject )
|
private ReferenceNode SearchAnimationClip( object obj )
|
||||||
{
|
{
|
||||||
AnimationClip clip = (AnimationClip) unityObject;
|
AnimationClip clip = (AnimationClip) obj;
|
||||||
ReferenceNode referenceNode = PopReferenceNode( clip );
|
ReferenceNode referenceNode = PopReferenceNode( clip );
|
||||||
|
|
||||||
// Get all curves from animation clip
|
// Get all curves from animation clip
|
||||||
@@ -983,17 +1000,17 @@ namespace AssetUsageDetectorNamespace
|
|||||||
}
|
}
|
||||||
|
|
||||||
// TerrainData's properties like tree/detail/layer definitions aren't exposed to SerializedObject so use reflection instead
|
// TerrainData's properties like tree/detail/layer definitions aren't exposed to SerializedObject so use reflection instead
|
||||||
private ReferenceNode SearchTerrainData( Object unityObject )
|
private ReferenceNode SearchTerrainData( object obj )
|
||||||
{
|
{
|
||||||
ReferenceNode referenceNode = PopReferenceNode( unityObject );
|
ReferenceNode referenceNode = PopReferenceNode( obj );
|
||||||
SearchVariablesWithReflection( referenceNode );
|
SearchVariablesWithReflection( referenceNode );
|
||||||
return referenceNode;
|
return referenceNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if UNITY_2017_1_OR_NEWER
|
#if UNITY_2017_1_OR_NEWER
|
||||||
private ReferenceNode SearchSpriteAtlas( Object unityObject )
|
private ReferenceNode SearchSpriteAtlas( object obj )
|
||||||
{
|
{
|
||||||
SpriteAtlas spriteAtlas = (SpriteAtlas) unityObject;
|
SpriteAtlas spriteAtlas = (SpriteAtlas) obj;
|
||||||
ReferenceNode referenceNode = PopReferenceNode( spriteAtlas );
|
ReferenceNode referenceNode = PopReferenceNode( spriteAtlas );
|
||||||
|
|
||||||
SerializedObject spriteAtlasSO = new SerializedObject( spriteAtlas );
|
SerializedObject spriteAtlasSO = new SerializedObject( spriteAtlas );
|
||||||
@@ -1083,13 +1100,13 @@ namespace AssetUsageDetectorNamespace
|
|||||||
|
|
||||||
#if UNITY_2017_3_OR_NEWER
|
#if UNITY_2017_3_OR_NEWER
|
||||||
// Find references from an Assembly Definition File to its Assembly Definition References
|
// Find references from an Assembly Definition File to its Assembly Definition References
|
||||||
private ReferenceNode SearchAssemblyDefinitionFile( Object unityObject )
|
private ReferenceNode SearchAssemblyDefinitionFile( object obj )
|
||||||
{
|
{
|
||||||
if( assemblyDefinitionFilesToSearch.Count == 0 )
|
if( assemblyDefinitionFilesToSearch.Count == 0 )
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
AssemblyDefinitionReferences assemblyDefinitionFile = JsonUtility.FromJson<AssemblyDefinitionReferences>( ( (TextAsset) unityObject ).text );
|
AssemblyDefinitionReferences assemblyDefinitionFile = JsonUtility.FromJson<AssemblyDefinitionReferences>( ( (TextAsset) obj ).text );
|
||||||
ReferenceNode referenceNode = PopReferenceNode( unityObject );
|
ReferenceNode referenceNode = PopReferenceNode( obj );
|
||||||
|
|
||||||
if( !string.IsNullOrEmpty( assemblyDefinitionFile.reference ) )
|
if( !string.IsNullOrEmpty( assemblyDefinitionFile.reference ) )
|
||||||
{
|
{
|
||||||
@@ -1123,15 +1140,15 @@ namespace AssetUsageDetectorNamespace
|
|||||||
|
|
||||||
#if UNITY_2018_1_OR_NEWER
|
#if UNITY_2018_1_OR_NEWER
|
||||||
// Searches Shader Graph assets for references
|
// Searches Shader Graph assets for references
|
||||||
private ReferenceNode SearchShaderGraph( Object unityObject )
|
private ReferenceNode SearchShaderGraph( object obj )
|
||||||
{
|
{
|
||||||
if( !searchTextureReferences && !searchShaderGraphsForSubGraphs && shaderIncludesToSearchSet.Count == 0 )
|
if( !searchTextureReferences && !searchShaderGraphsForSubGraphs && shaderIncludesToSearchSet.Count == 0 )
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
ReferenceNode referenceNode = PopReferenceNode( unityObject );
|
ReferenceNode referenceNode = PopReferenceNode( obj );
|
||||||
|
|
||||||
// Shader Graph assets are JSON files, they must be crawled manually to find references
|
// Shader Graph assets are JSON files, they must be crawled manually to find references
|
||||||
string graphJson = File.ReadAllText( AssetDatabase.GetAssetPath( unityObject ) );
|
string graphJson = File.ReadAllText( AssetDatabase.GetAssetPath( (Object) obj ) );
|
||||||
if( graphJson.IndexOf( "\"m_ObjectId\"", 0, Mathf.Min( 200, graphJson.Length ) ) >= 0 )
|
if( graphJson.IndexOf( "\"m_ObjectId\"", 0, Mathf.Min( 200, graphJson.Length ) ) >= 0 )
|
||||||
{
|
{
|
||||||
// New Shader Graph serialization format is used: https://github.com/Unity-Technologies/Graphics/pull/222
|
// New Shader Graph serialization format is used: https://github.com/Unity-Technologies/Graphics/pull/222
|
||||||
@@ -1252,6 +1269,19 @@ namespace AssetUsageDetectorNamespace
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if ASSET_USAGE_VFX_GRAPH
|
||||||
|
private ReferenceNode SearchVFXGraphAsset( object obj )
|
||||||
|
{
|
||||||
|
ReferenceNode referenceNode = PopReferenceNode( obj );
|
||||||
|
|
||||||
|
object vfxResource = vfxResourceGetter( AssetDatabase.GetAssetPath( (Object) obj ) );
|
||||||
|
foreach( Object vfxResourceContent in (Object[]) vfxResourceContentsGetter.Invoke( vfxResource, null ) )
|
||||||
|
referenceNode.AddLinkTo( SearchObject( vfxResourceContent ) );
|
||||||
|
|
||||||
|
return referenceNode;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// Find references from an Animation/Animator component to the objects that it animates
|
// Find references from an Animation/Animator component to the objects that it animates
|
||||||
private void SearchAnimatedObjects( ReferenceNode referenceNode )
|
private void SearchAnimatedObjects( ReferenceNode referenceNode )
|
||||||
{
|
{
|
||||||
@@ -1427,14 +1457,23 @@ namespace AssetUsageDetectorNamespace
|
|||||||
#endif
|
#endif
|
||||||
case SerializedPropertyType.Generic:
|
case SerializedPropertyType.Generic:
|
||||||
#if ASSET_USAGE_ADDRESSABLES
|
#if ASSET_USAGE_ADDRESSABLES
|
||||||
AssetReference assetReference;
|
if( searchParameters.addressablesSupport && iterator.type.StartsWithFast( "AssetReference" ) && GetRawSerializedPropertyValue( iterator ) is AssetReference assetReference )
|
||||||
if( searchParameters.addressablesSupport && iterator.type.StartsWithFast( "AssetReference" ) && ( assetReference = GetRawSerializedPropertyValue( iterator ) as AssetReference ) != null )
|
|
||||||
{
|
{
|
||||||
propertyValue = GetAddressablesAssetReferenceValue( assetReference );
|
propertyValue = GetAddressablesAssetReferenceValue( assetReference );
|
||||||
searchResult = SearchObject( PreferablyGameObject( propertyValue ) );
|
searchResult = SearchObject( PreferablyGameObject( propertyValue ) );
|
||||||
enterChildren = false;
|
enterChildren = false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
|
#if ASSET_USAGE_VFX_GRAPH
|
||||||
|
if( vfxSerializableObjectValueGetter != null && iterator.type == "VFXSerializableObject" && GetRawSerializedPropertyValue( iterator ) is object vfxSerializableObject )
|
||||||
|
{
|
||||||
|
object vfxSerializableObjectValue = vfxSerializableObjectValueGetter.Invoke( vfxSerializableObject, null );
|
||||||
|
propertyValue = vfxSerializableObjectValue as Object;
|
||||||
|
searchResult = SearchObject( PreferablyGameObject( vfxSerializableObjectValue ) );
|
||||||
|
enterChildren = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
#endif
|
#endif
|
||||||
{
|
{
|
||||||
propertyValue = null;
|
propertyValue = null;
|
||||||
|
|||||||
@@ -96,6 +96,13 @@ namespace AssetUsageDetectorNamespace
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Other Settings
|
#region Other Settings
|
||||||
|
private static bool? m_showRootAssetName = null;
|
||||||
|
public static bool ShowRootAssetName
|
||||||
|
{
|
||||||
|
get { if( m_showRootAssetName == null ) m_showRootAssetName = EditorPrefs.GetBool( "AUD_ShowRootAssetName", false ); return m_showRootAssetName.Value; }
|
||||||
|
set { if( m_showRootAssetName == value ) return; m_showRootAssetName = value; EditorPrefs.SetBool( "AUD_ShowRootAssetName", value ); }
|
||||||
|
}
|
||||||
|
|
||||||
private static bool? m_pingClickedObjects = null;
|
private static bool? m_pingClickedObjects = null;
|
||||||
public static bool PingClickedObjects
|
public static bool PingClickedObjects
|
||||||
{
|
{
|
||||||
@@ -179,7 +186,9 @@ namespace AssetUsageDetectorNamespace
|
|||||||
|
|
||||||
EditorGUI.BeginChangeCheck();
|
EditorGUI.BeginChangeCheck();
|
||||||
|
|
||||||
SettingsHeaderColor = ColorField( "Settings Header Color", SettingsHeaderColor, Color.cyan );
|
EditorGUIUtility.labelWidth += 140f;
|
||||||
|
ShowRootAssetName = EditorGUILayout.Toggle( "Show Root Asset's Name For Sub-Assets (Requires Refresh)", ShowRootAssetName );
|
||||||
|
EditorGUIUtility.labelWidth -= 140f;
|
||||||
|
|
||||||
EditorGUILayout.Space();
|
EditorGUILayout.Space();
|
||||||
|
|
||||||
@@ -202,6 +211,7 @@ namespace AssetUsageDetectorNamespace
|
|||||||
|
|
||||||
EditorGUILayout.Space();
|
EditorGUILayout.Space();
|
||||||
|
|
||||||
|
SettingsHeaderColor = ColorField( "Settings Header Color", SettingsHeaderColor, Color.cyan );
|
||||||
SearchResultGroupHeaderColor = ColorField( "Group Header Color", SearchResultGroupHeaderColor, Color.cyan );
|
SearchResultGroupHeaderColor = ColorField( "Group Header Color", SearchResultGroupHeaderColor, Color.cyan );
|
||||||
RootRowsBackgroundColor = ColorField( "Root Rows Background Color", RootRowsBackgroundColor, EditorGUIUtility.isProSkin ? new Color( 0f, 1f, 1f, 0.15f ) : new Color( 0f, 1f, 1f, 0.25f ) );
|
RootRowsBackgroundColor = ColorField( "Root Rows Background Color", RootRowsBackgroundColor, EditorGUIUtility.isProSkin ? new Color( 0f, 1f, 1f, 0.15f ) : new Color( 0f, 1f, 1f, 0.25f ) );
|
||||||
RootRowsBorderColor = ColorField( "Root Rows Border Color", RootRowsBorderColor, EditorGUIUtility.isProSkin ? new Color( 0.15f, 0.15f, 0.15f, 1f ) : new Color( 0.375f, 0.375f, 0.375f, 1f ) );
|
RootRowsBorderColor = ColorField( "Root Rows Border Color", RootRowsBorderColor, EditorGUIUtility.isProSkin ? new Color( 0.15f, 0.15f, 0.15f, 1f ) : new Color( 0.375f, 0.375f, 0.375f, 1f ) );
|
||||||
|
|||||||
@@ -570,7 +570,7 @@ namespace AssetUsageDetectorNamespace
|
|||||||
lazySceneSearch = WordWrappingToggleLeft( "Lazy scene search: scenes are searched in detail only when they are manually refreshed (faster search)", lazySceneSearch );
|
lazySceneSearch = WordWrappingToggleLeft( "Lazy scene search: scenes are searched in detail only when they are manually refreshed (faster search)", lazySceneSearch );
|
||||||
#if ASSET_USAGE_ADDRESSABLES
|
#if ASSET_USAGE_ADDRESSABLES
|
||||||
EditorGUI.EndDisabledGroup();
|
EditorGUI.EndDisabledGroup();
|
||||||
addressablesSupport = WordWrappingToggleLeft( "Addressables support (WARNING: 'Lazy scene search' will be disabled) (slower search)", addressablesSupport );
|
addressablesSupport = WordWrappingToggleLeft( "Addressables support (Experimental) (WARNING: 'Lazy scene search' will be disabled) (slower search)", addressablesSupport );
|
||||||
#endif
|
#endif
|
||||||
calculateUnusedObjects = WordWrappingToggleLeft( "Calculate unused objects", calculateUnusedObjects );
|
calculateUnusedObjects = WordWrappingToggleLeft( "Calculate unused objects", calculateUnusedObjects );
|
||||||
hideDuplicateRows = WordWrappingToggleLeft( "Hide duplicate rows in search results", hideDuplicateRows );
|
hideDuplicateRows = WordWrappingToggleLeft( "Hide duplicate rows in search results", hideDuplicateRows );
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.IO;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using UnityEditor;
|
using UnityEditor;
|
||||||
using UnityEditor.IMGUI.Controls;
|
using UnityEditor.IMGUI.Controls;
|
||||||
@@ -1221,6 +1222,13 @@ namespace AssetUsageDetectorNamespace
|
|||||||
{
|
{
|
||||||
instanceId = unityObject.GetInstanceID();
|
instanceId = unityObject.GetInstanceID();
|
||||||
Label = unityObject.name + " (" + unityObject.GetType().Name + ")";
|
Label = unityObject.name + " (" + unityObject.GetType().Name + ")";
|
||||||
|
|
||||||
|
if( AssetUsageDetectorSettings.ShowRootAssetName && unityObject.IsAsset() && !AssetDatabase.IsMainAsset( unityObject ) )
|
||||||
|
{
|
||||||
|
string mainAssetName = Path.GetFileNameWithoutExtension( AssetDatabase.GetAssetPath( unityObject ) );
|
||||||
|
if( unityObject.name != mainAssetName )
|
||||||
|
Label += " <" + mainAssetName + ">";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if( nodeObject != null )
|
else if( nodeObject != null )
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -177,6 +177,12 @@ namespace AssetUsageDetectorNamespace
|
|||||||
selection = objTR.gameObject;
|
selection = objTR.gameObject;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
else if( prefabAssetType == PrefabAssetType.Model )
|
||||||
|
{
|
||||||
|
objTR = ( (GameObject) obj ).transform;
|
||||||
|
while( objTR.parent != null && objTR.parent.parent != null )
|
||||||
|
objTR = objTR.parent;
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
Transform objTR = ( (GameObject) obj ).transform;
|
Transform objTR = ( (GameObject) obj ).transform;
|
||||||
while( objTR.parent != null && objTR.parent.parent != null )
|
while( objTR.parent != null && objTR.parent.parent != null )
|
||||||
@@ -190,6 +196,11 @@ namespace AssetUsageDetectorNamespace
|
|||||||
// Can't ping assets that are hidden from Project window (e.g. animator states of AnimatorController), ping the main asset at that path instead
|
// Can't ping assets that are hidden from Project window (e.g. animator states of AnimatorController), ping the main asset at that path instead
|
||||||
pingTarget = AssetDatabase.LoadMainAssetAtPath( AssetDatabase.GetAssetPath( obj ) );
|
pingTarget = AssetDatabase.LoadMainAssetAtPath( AssetDatabase.GetAssetPath( obj ) );
|
||||||
}
|
}
|
||||||
|
else if( !AssetDatabase.IsMainAsset( obj ) && Array.IndexOf( AssetDatabase.LoadAllAssetRepresentationsAtPath( AssetDatabase.GetAssetPath( obj ) ), obj ) < 0 )
|
||||||
|
{
|
||||||
|
// VFX Graph assets' nodes are serialized as part of the graph but they are invisible in the Project window even though their hideFlags is None (I don't know how)
|
||||||
|
pingTarget = AssetDatabase.LoadMainAssetAtPath( AssetDatabase.GetAssetPath( obj ) );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
= Asset Usage Detector (v2.3.1) =
|
= Asset Usage Detector (v2.4.1) =
|
||||||
|
|
||||||
Online documentation available at: https://github.com/yasirkula/UnityAssetUsageDetector
|
Online documentation available at: https://github.com/yasirkula/UnityAssetUsageDetector
|
||||||
E-mail: yasirkula@gmail.com
|
E-mail: yasirkula@gmail.com
|
||||||
@@ -8,15 +8,6 @@ E-mail: yasirkula@gmail.com
|
|||||||
This tool helps you find usages of the selected asset(s) and/or scene object(s), i.e. lists the objects that refer to them.
|
This tool helps you find usages of the selected asset(s) and/or scene object(s), i.e. lists the objects that refer to them.
|
||||||
|
|
||||||
|
|
||||||
### ADDRESSABLES SUPPORT
|
|
||||||
This plugin has experimental support for Addressables package. However, the search may take significantly longer to finish when Addressables are searched. Some manual modifications are needed to enable Addressables support:
|
|
||||||
|
|
||||||
- The plugin mustn't be installed as a package, i.e. it must reside inside the Assets folder and not the Packages folder (it can reside inside a subfolder of Assets like Assets/Plugins)
|
|
||||||
- Add ASSET_USAGE_ADDRESSABLES compiler directive to "Player Settings/Scripting Define Symbols" (these symbols are platform specific, so if you change the active platform later, you'll have to add the compiler directive again)
|
|
||||||
- Add "Unity.Addressables" assembly to "AssetUsageDetector.Editor" Assembly Definition File's "Assembly Definition References" list
|
|
||||||
- Enable the "Addressables support" option in Asset Usage Detector window
|
|
||||||
|
|
||||||
|
|
||||||
### HOW TO
|
### HOW TO
|
||||||
- Open "Window-Asset Usage Detector" window, configure the settings and hit "GO!". You can also right click an object and select "Search For References"
|
- Open "Window-Asset Usage Detector" window, configure the settings and hit "GO!". You can also right click an object and select "Search For References"
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "com.yasirkula.assetusagedetector",
|
"name": "com.yasirkula.assetusagedetector",
|
||||||
"displayName": "Asset Usage Detector",
|
"displayName": "Asset Usage Detector",
|
||||||
"version": "2.3.1",
|
"version": "2.4.1",
|
||||||
"documentationUrl": "https://github.com/yasirkula/UnityAssetUsageDetector",
|
"documentationUrl": "https://github.com/yasirkula/UnityAssetUsageDetector",
|
||||||
"changelogUrl": "https://github.com/yasirkula/UnityAssetUsageDetector/releases",
|
"changelogUrl": "https://github.com/yasirkula/UnityAssetUsageDetector/releases",
|
||||||
"licensesUrl": "https://github.com/yasirkula/UnityAssetUsageDetector/blob/master/LICENSE.txt",
|
"licensesUrl": "https://github.com/yasirkula/UnityAssetUsageDetector/blob/master/LICENSE.txt",
|
||||||
|
|||||||
Reference in New Issue
Block a user