diff --git a/Source/Editor/CustomEditors/Editors/GenericEditor.cs b/Source/Editor/CustomEditors/Editors/GenericEditor.cs index 88b056c9e..ff8fdb2b6 100644 --- a/Source/Editor/CustomEditors/Editors/GenericEditor.cs +++ b/Source/Editor/CustomEditors/Editors/GenericEditor.cs @@ -741,7 +741,7 @@ namespace FlaxEditor.CustomEditors.Editors if (types.Length == 1) { // Single type - button.Clicked += () => SetValue(Values.Type.CreateInstance()); + button.Clicked += () => SetValue(types[0].CreateInstance()); } else {