"Show Root Asset's Name" setting is enabled by default + root asset's name is prepended by "in" word for more clarity

This commit is contained in:
yasirkula
2023-11-18 17:46:28 +03:00
parent a6d91a58a3
commit e6641bef48
2 changed files with 2 additions and 2 deletions
@@ -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 ); }
}
@@ -1232,7 +1232,7 @@ namespace AssetUsageDetectorNamespace
{
string mainAssetName = Path.GetFileNameWithoutExtension( AssetDatabase.GetAssetPath( unityObject ) );
if( unityObject.name != mainAssetName )
Label += " <" + mainAssetName + ">";
Label += " <in " + mainAssetName + ">";
}
}
else if( nodeObject != null )