diff --git a/Source/Editor/CustomEditors/Editors/TypeEditor.cs b/Source/Editor/CustomEditors/Editors/TypeEditor.cs
index ab17c4ae1..03df18c08 100644
--- a/Source/Editor/CustomEditors/Editors/TypeEditor.cs
+++ b/Source/Editor/CustomEditors/Editors/TypeEditor.cs
@@ -464,6 +464,11 @@ namespace FlaxEditor.CustomEditors.Editors
///
public class TypeNameEditor : TypeEditorBase
{
+ ///
+ /// Prevents spamming log if Value contains missing type to skip research in subsequential Refresh ticks.
+ ///
+ private string _lastTypeNameError;
+
///
public override void Initialize(LayoutElementsContainer layout)
{
@@ -484,8 +489,13 @@ namespace FlaxEditor.CustomEditors.Editors
{
base.Refresh();
- if (!HasDifferentValues && Values[0] is string asTypename)
+ if (!HasDifferentValues && Values[0] is string asTypename &&
+ !string.Equals(asTypename, _lastTypeNameError, StringComparison.Ordinal))
+ {
_element.CustomControl.Value = TypeUtils.GetType(asTypename);
+ if (_element.CustomControl.Value == null && asTypename.Length != 0)
+ _lastTypeNameError = asTypename;
+ }
}
}
}