Releases: dbrizov/NaughtyAttributes
Releases · dbrizov/NaughtyAttributes
v2.0.4
API changes
- The callback method of
[OnValueChanged]
no longer has anoldValue
andnewValue
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 - theoldValue
andnewValue
were pointing to the same object. - The parameter of the validation method of
[ValidateInput]
is now optional. [ProgressBar]
can now have dynamic max value driven by a field, property or function[Button]
now has anEnableMode
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 anIEnumerator
return type. In this case the button is disabled when not in play mode[Button]
can now be used on methods with default parameters
New attributes
[CurveRange]
- can be used to specify the color of the animation curve, and/or limit thex
andy
values of the curve
Fixes
[Dropdown]
no longer throws an exception if any of the values for the dropdown isnull
v2.0.3
v2.0.2
New Attributes
Fixes
- The label of the
[ResizableTextArea]
was hidden after 2019.3.x - Enum support for non-serialized fields and properties
- Buttons can now change serialized properties of games objects, prefabs (both in scenes and prefab mode), and scriptable objects. After you save the project the changes are successfully serialized on disk.
- Box groups are no longer drawn if all properties inside them are hidden