mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-16 22:27:45 +08:00
Add assembly name to class search result labels
This commit is contained in:
parent
601567f9d2
commit
5b516eb4cc
@ -131,7 +131,10 @@ namespace UnityExplorer.ObjectExplorer
|
|||||||
{
|
{
|
||||||
string text;
|
string text;
|
||||||
if (m_context == SearchContext.Class)
|
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
|
else
|
||||||
text = ToStringUtility.ToStringWithType(currentResults[index], currentResults[index]?.GetActualType());
|
text = ToStringUtility.ToStringWithType(currentResults[index], currentResults[index]?.GetActualType());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user