Add type display to empty object ref in editor

This commit is contained in:
Chandler Cox
2024-07-19 06:48:35 -05:00
parent d879b8e064
commit 9b11461eaf

View File

@@ -208,7 +208,7 @@ namespace FlaxEditor.CustomEditors.Editors
else else
{ {
// Draw info // Draw info
Render2D.DrawText(style.FontMedium, "-", nameRect, isEnabled ? Color.OrangeRed : Color.DarkOrange, TextAlignment.Near, TextAlignment.Center); Render2D.DrawText(style.FontMedium, Type != null ? $"None ({Utilities.Utils.GetPropertyNameUI(Type.ToString())})" : "-", nameRect, isEnabled ? Color.OrangeRed : Color.DarkOrange, TextAlignment.Near, TextAlignment.Center);
} }
// Draw picker button // Draw picker button