From 26f4bcbc25aef5d1664452d2a40a84fb52d67fc3 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Mon, 25 Aug 2025 10:09:25 +0200 Subject: [PATCH] Fix UI Control Reference picker to support base/inherited types --- Source/Editor/CustomEditors/Editors/ControlReferenceEditor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())); } }