Fix object reference empty text clipping

This commit is contained in:
Wojtek Figat
2024-08-27 23:37:28 +02:00
parent 0b3835f593
commit 838cb9f2ce

View File

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