- changed title to EnumToggleButtons rows and columns
EnumToggleButtons rows and columns
The EnumToggleButtons works great, but when I have too many Enum values, the button size of each button becomes too small to make out what it says. It would be great if I could define how many columns or rows I want to restrict the Toggle Buttons to by passing an int parameter.I know there is the option of using a regular flags dropdown box which I'm using now, but just a suggestion to improve the EnumToggleButtons, since having like 2 rows does look better sometimes. (Example in screenshot)
http://www.sharkbombs.com/2015/02/17/unity-editor-enum-flags-as-toggle-buttons/ What I'm describing is similar to Jesse Busch's comment to NickCellini's comment here.
Comments (4)
-
reporter -
- changed status to resolved
Good suggestion! Going to implement something like that now, so it will be there in the next patch.
-
Here is how it ended up looking. It now automatically calculates the number rows and columns.
-
reporter Might be nicer to have control over the column number so it follows like more of a grid, but yup the automatic thing is pretty cool and looks great, looking forward to it!
- Log in to comment