diff --git a/Source/Editor/CustomEditors/Editors/ControlReferenceEditor.cs b/Source/Editor/CustomEditors/Editors/ControlReferenceEditor.cs index b31b40e53..e742c8b02 100644 --- a/Source/Editor/CustomEditors/Editors/ControlReferenceEditor.cs +++ b/Source/Editor/CustomEditors/Editors/ControlReferenceEditor.cs @@ -22,7 +22,7 @@ internal class UIControlRefPickerControl : FlaxObjectRefPickerControl /// protected override bool IsValid(Object obj) { - return obj == null || (obj is UIControl control && control.Control.GetType() == ControlType); + return obj == null || (obj is UIControl control && ControlType.IsAssignableFrom(control.Control.GetType())); } }