You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you change variable's value in inspector, it triggers Target.Raise() before the value in SO is actually changed, e.g. if you have BoolVariable equal to false and click it in inspector, checkmark appears but listeners still get "false".
To fix it you should put a flag and call the event on next GUI frame that happens immediately anyway.
The text was updated successfully, but these errors were encountered:
hadmaerd
changed the title
Variable changed event is called too soon if edited in inspector
"Variable changed" event is called too soon if edited in inspector
Aug 9, 2019
hadmaerd
changed the title
"Variable changed" event is called too soon if edited in inspector
"Value changed" event is called too soon if edited in inspector
Aug 9, 2019
When you change variable's value in inspector, it triggers Target.Raise() before the value in SO is actually changed, e.g. if you have BoolVariable equal to false and click it in inspector, checkmark appears but listeners still get "false".
To fix it you should put a flag and call the event on next GUI frame that happens immediately anyway.
The text was updated successfully, but these errors were encountered: