OnValueChanged - add option to disable calling method on Undo

Issue #690 resolved
Maciej Paluszek created an issue

Adding option to OnValueChanged to disable calling on undo would be helpful in some situations.

Example:

In my script I am spawning prefabs with method that calls undo after assigning scriptable object to field, but after undo then redo there are twice as much prefabs - one set is from undo system, one from method called by OnValueChanged.

I’ve made my own version of OnValueChanged that don’t call method on undo, but I think that this would be nice addition to be built-in that is very simple to make.

Comments (1)

  1. Log in to comment