From e6641bef4807c16e88d5c974b7c8b6680cf8d13d Mon Sep 17 00:00:00 2001 From: yasirkula Date: Sat, 18 Nov 2023 17:46:28 +0300 Subject: [PATCH] "Show Root Asset's Name" setting is enabled by default + root asset's name is prepended by "in" word for more clarity --- Plugins/AssetUsageDetector/Editor/AssetUsageDetectorSettings.cs | 2 +- Plugins/AssetUsageDetector/Editor/SearchResult.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Plugins/AssetUsageDetector/Editor/AssetUsageDetectorSettings.cs b/Plugins/AssetUsageDetector/Editor/AssetUsageDetectorSettings.cs index 35693d2..db87413 100644 --- a/Plugins/AssetUsageDetector/Editor/AssetUsageDetectorSettings.cs +++ b/Plugins/AssetUsageDetector/Editor/AssetUsageDetectorSettings.cs @@ -99,7 +99,7 @@ namespace AssetUsageDetectorNamespace 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; } + get { if( m_showRootAssetName == null ) m_showRootAssetName = EditorPrefs.GetBool( "AUD_ShowRootAssetName", true ); return m_showRootAssetName.Value; } set { if( m_showRootAssetName == value ) return; m_showRootAssetName = value; EditorPrefs.SetBool( "AUD_ShowRootAssetName", value ); } } diff --git a/Plugins/AssetUsageDetector/Editor/SearchResult.cs b/Plugins/AssetUsageDetector/Editor/SearchResult.cs index 0099b42..cfb8f9e 100644 --- a/Plugins/AssetUsageDetector/Editor/SearchResult.cs +++ b/Plugins/AssetUsageDetector/Editor/SearchResult.cs @@ -1232,7 +1232,7 @@ namespace AssetUsageDetectorNamespace { string mainAssetName = Path.GetFileNameWithoutExtension( AssetDatabase.GetAssetPath( unityObject ) ); if( unityObject.name != mainAssetName ) - Label += " <" + mainAssetName + ">"; + Label += " "; } } else if( nodeObject != null )