dbrizov / NaughtyAttributes

Attribute Extensions for Unity
MIT License
4.53k stars 464 forks source link

[Bug] OnValueChanged with Arrays/Lists. #350

Open Gohloum opened 1 year ago

Gohloum commented 1 year ago

When using [OnValueChanged("callbackName")] with an array or list, adding or removing elements will trigger the OnValueChanged. However re-arranging the existing items in a list is ignored. I would think this action should also fire the OnValueChanged. If not, can you please add it as a feature?

Thank you!

Gohloum commented 1 year ago

Also, I just noticed changing the value of an element in a list does not fire the OnValueChanged either. So it would seem that the only event that fires it is when the length of the array or list changes.