Fix UI Control Reference picker to support base/inherited types

This commit is contained in:
Wojtek Figat
2025-08-25 10:09:25 +02:00
parent cdb09847ec
commit 26f4bcbc25

View File

@@ -22,7 +22,7 @@ internal class UIControlRefPickerControl : FlaxObjectRefPickerControl
/// <inheritdoc />
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()));
}
}