Skip to content

Releases: dbrizov/NaughtyAttributes

v2.1.4

12 Feb 15:43
Compare
Choose a tag to compare

New Attributes

  • SortingLayer - similar to [Layer], but instead of selecting a physics layer, you can select a sorting layer via dropdown interface

v2.1.3

06 Feb 19:24
Compare
Choose a tag to compare

Fixes

  • 2bba47d (#297) - Fixed a bug where [CurveRange] couldn't be used on array/list of curves
  • 4f07279 (#279) - [ShowNonSerializedField] and [ShowNativeProperty] now use Unity's nicified object names when drawn in the inspector

v2.1.2

06 Feb 16:49
Compare
Choose a tag to compare

Fixes

  • 7cddf69 (#294) - fixed a bug where properties above others marked with [Expandable] were non-modifiable

v2.1.1

11 Oct 14:15
Compare
Choose a tag to compare

Fixes

  • 7d174c4 - fixed a null reference caused by an empty Dropdown
  • 178959b (#277) - fixed a bug where Expandable wasn't working correctly when inside deep nesting hierarchies of lists with scriptable objects

v2.1.0

02 May 19:01
Compare
Choose a tag to compare

Features

  • 7a2d8e1 (#217) - EnableIf/DisableIf/ShowIf/HideIf can now have an enum flags condition

Fixes

  • e4edd04 (#232) - Expandable can now be applied on a list of scriptable objects

v2.0.9

25 Apr 19:26
Compare
Choose a tag to compare

Minimum supported unity version

  • The minimum supported Unity version is now 2018.4.x instead of 2018.3.x

New attributes

  • Layer - You can select a Unity layer. Similar to Scene, Tag, InputAxis and AnimatorParam attributes

Improvements

  • Added support for short, ushort, uint, ulong, Vector2Int, Vector3Int, RectInt for [ShowNativeProperty] and [ShowNonSerializedField]
  • MinMaxSlider can be applied to Vector2Int
  • MinValue and MaxValue validators can be applied to Vector2, Vector3, Vector4, Vector2Int, Vector3Int
  • ShowIf/HideIf/EnableIf/DisableIf now support enum value as a condition

Fixes

  • ce8eaf2 (#180) - ReadOnly is now a meta attribute so it can be combined with other drawer attributes
  • 3944fec (#185) - fixed a bug where scriptable objects with the Expandable attribute become corrupted when the user selects multiple game objects with the same MonoBehaviour
  • 6e24ead (#207) - fixed a bug where Decorator Drawers are not affected by ShowIf/HideIf/EnableIf/DisableIf attributes
  • dcae7a6 (#209) - fixed a bug where multi-selection of objects with a dropdown overwrites all values to be the value of the last object selected
  • 325696f (#213) - fixed a bug where Dropdown doesn't save first value by default
  • faa02a1 (#222) - fixed a bug where ProgressBar wasn't working with integers
  • da9c670 - fixed a bug where the labels of nested curves when using the CurveRange attribute where invisible

v2.0.8

11 Jan 23:26
Compare
Choose a tag to compare

Fixes

  • add11c4 - Fixed incorrect rendering of custom property drawers in ReorderableList
  • 473fb3b - Foldout group can now be expanded when you click on the label
  • aa20fa3 - The Button and the ReorderableList's label now support rich text (#189)
  • 0183cca - Fixed a nesting bug where some elements where overlapping (#200)

Hooray

  • As of Unity 2020.2.x all arrays and lists in the inspector are reorderable by default, so we no longer have to use the ReorderableList attribute. I think we all have a part in this. Just wanted to say thanks to all users and contributors. If it wasn't for you, this project would've never become so popular. Let's hope Unity Technologies will integrate more attributes in the engine. Together we can make Unity even greater... Ho, ho, ho

v2.0.7

10 Oct 11:14
Compare
Choose a tag to compare

Fixes

  • #184 - Foldout is now supported for versions below Unity 2019.1

v2.0.6

29 Aug 07:42
Compare
Choose a tag to compare

Fixes

#171 - ReorderableList doesn't work correctly inside expanded ScriptableObject
#174 - Expandable does not work on classes inherited from ScriptableObject

v2.0.5

21 Aug 14:02
Compare
Choose a tag to compare

New Attributes

  • AnimatorParam - easy selection of animator parameters
  • Expandable - ScriptableObjects can be expanded inside MonoBehaviours or other ScriptableObjects
  • Foldout - creates a foldout group

Improvements

  • Type support for [ShowNativeProperty]
  • [InfoBox] is now resizable depending on the size of the content
  • The header of the [ReorderableList] now supports drag and drop
  • The headers of buttons, non-serialized fields, and native properties are removed

Fixes

  • #161 - fixed a null reference exception when viewing game objects with deleted mono behaviors that use NaughtyAttributes
  • If an exception is thrown, the inspector's disabled scoped can't be modified, because all calls to GUI.enabled are replaced with EditorGUI.DisabledScope()
  • #123 - [ReorderableList] and [ShowAssetPreview] can now be combined together.