Deadcows / MyBox

MyBox is a set of attributes, tools and extensions for Unity
http://deadcow.ru
MIT License
1.94k stars 244 forks source link

Spacing for Conditional Attributes #213

Closed CaoilainnFW closed 2 years ago

CaoilainnFW commented 2 years ago

When multiple sets of variables are hidden under a non-bool enum, the spacing begins to stack slightly, so the variables declared after others appear shifted downwards, and visa-versa.

CaoilainnFW commented 2 years ago

Found a fix, in the "GetPropertyHeight" method in the attribute script, instead of returning 0 when "_toShow" is false, return -2, this aligns all the fields properly.

Deadcows commented 2 years ago

Thanks! Added this fix to the main branch