[Suggestion] Add a constraint on UIControl.Control
reference type by attribute
#2579
Labels
UIControl.Control
reference type by attribute
#2579
(Low priority, to discuss)
The
UIControl.Control
indirection reduces editor's reference type checking abilities, because all script references are justUIControl
. The suggestion is to add an attribute that could put type constraint on the control. Example:The editor would limit the selectable controls to only buttons and would inform a developer that the UIControl's Control type has changed type that disobeys the contraint.
The text was updated successfully, but these errors were encountered: