diff --git a/Source/Editor/GUI/AssetPicker.cs b/Source/Editor/GUI/AssetPicker.cs index 1edb5ec58..69f644827 100644 --- a/Source/Editor/GUI/AssetPicker.cs +++ b/Source/Editor/GUI/AssetPicker.cs @@ -7,6 +7,7 @@ using FlaxEditor.GUI.Drag; using FlaxEditor.Scripting; using FlaxEngine; using FlaxEngine.GUI; +using FlaxEngine.Utilities; namespace FlaxEditor.GUI { @@ -149,7 +150,7 @@ namespace FlaxEditor.GUI TextAlignment.Center); Render2D.DrawText( style.FontSmall, - $"{TypeUtils.GetTypeDisplayName(Validator.AssetType.Type)}", + $"{Validator.AssetType.Type.GetTypeDisplayName()}", new Rectangle(button1Rect.Right + 2, ButtonsSize + 2, sizeForTextLeft, ButtonsSize), style.ForegroundGrey, TextAlignment.Near, @@ -178,7 +179,7 @@ namespace FlaxEditor.GUI TextAlignment.Center); Render2D.DrawText( style.FontSmall, - $"{TypeUtils.GetTypeDisplayName(Validator.AssetType.Type)}", + $"{Validator.AssetType.Type.GetTypeDisplayName()}", new Rectangle(button1Rect.Right + 2, ButtonsSize + 2, sizeForTextLeft, ButtonsSize), style.ForegroundGrey, TextAlignment.Near, @@ -202,7 +203,7 @@ namespace FlaxEditor.GUI TextAlignment.Center); Render2D.DrawText( style.FontSmall, - $"{TypeUtils.GetTypeDisplayName(Validator.AssetType.Type)}", + $"{Validator.AssetType.Type.GetTypeDisplayName()}", new Rectangle(button1Rect.Right + 2, ButtonsSize + 2, sizeForTextLeft, ButtonsSize), style.ForegroundGrey, TextAlignment.Near,