Add assembly name to class search result labels

This commit is contained in:
Sinai 2021-07-02 18:45:03 +10:00
parent 601567f9d2
commit 5b516eb4cc

View File

@ -131,7 +131,10 @@ namespace UnityExplorer.ObjectExplorer
{
string text;
if (m_context == SearchContext.Class)
text = SignatureHighlighter.Parse(currentResults[index] as Type, true);
{
var type = currentResults[index] as Type;
text = $"{SignatureHighlighter.Parse(type, true)} <color=grey><i>({type.Assembly.GetName().Name})</i></color>";
}
else
text = ToStringUtility.ToStringWithType(currentResults[index], currentResults[index]?.GetActualType());