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
Currently, UI.Button always center-aligns text. For auto-width buttons this is reasonable, since there's no extra room for an explicit alignment to be useful. But for explicitly sized elements, the fact that text is center-aligned can become obvious, and this raises the need for explicit control.
To resolve this, any explicitly sized UI element with text should have a text alignment and text fit parameter. In this case, the parameters can be appended to the end of the existing function's list and provided with default values. The same can likely be done in C#.
Describe the feature
Currently,
UI.Button
always center-aligns text. For auto-width buttons this is reasonable, since there's no extra room for an explicit alignment to be useful. But for explicitly sized elements, the fact that text is center-aligned can become obvious, and this raises the need for explicit control.To resolve this, any explicitly sized UI element with text should have a text alignment and text fit parameter. In this case, the parameters can be appended to the end of the existing function's list and provided with default values. The same can likely be done in C#.
In particular, these functions:
The text was updated successfully, but these errors were encountered: