You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The UIControl.Control indirection reduces editor's reference type checking abilities, because all script references are just UIControl. The suggestion is to add an attribute that could put type constraint on the control. Example:
[Serialize, ControlType<Button>()]
public UIControl MyGreatButton;
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:
(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: