Attribute Extensions for Unity
[OnValueChanged]
no longer has an oldValue
and newValue
parameters (just like in v1.0.0+). There was a problem that caused null reference exceptions. It also caused confusion when the parameters are reference types - the oldValue
and newValue
were pointing to the same object.[ValidateInput]
is now optional.[ProgressBar]
can now have dynamic max value driven by a field, property or function[Button]
now has an EnableMode
which can specify when the button is active (always, in editor only, in playmode only)[Button]
can now be combined with meta attributes (i.e. [ShowIf]
, [EnableIf]
)[Button]
can now start coroutines if it is applied to a method with an IEnumerator
return type. In this case the button is disabled when not in play mode[Button]
can now be used on methods with default parameters[CurveRange]
- can be used to specify the color of the animation curve, and/or limit the x
and y
values of the curve[Dropdown]
no longer throws an exception if any of the values for the dropdown is null
Hotfix: #127
New Attributes
Fixes
[ResizableTextArea]
was hidden after 2019.3.xReworked from scratch.