NaughtyAttributes Versions Save

Attribute Extensions for Unity

v2.0.4

4 years ago

API changes

  • The callback method of [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.
  • 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 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

New attributes

  • [CurveRange] - can be used to specify the color of the animation curve, and/or limit the x and y values of the curve

Fixes

  • [Dropdown] no longer throws an exception if any of the values for the dropdown is null

v2.0.3

4 years ago

Hotfix: #127

v2.0.2

4 years ago

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

v2.0.0

4 years ago

Reworked from scratch.

  • Nesting is now supported
  • EnumFlags attribute added
  • HorizontalLine attribute added

v1.0.4

4 years ago