- Home /
On Value changed event fired without the value changed.
I made a Toggle group and assigned a callback function to the "On Value Changed (Boolean)" list of the first of them. When I now click on the first toggle more than once the event is fired all the time even though the value did not change.
That means I have to remember the state in my script and compare it to the newly incomming value to notice whether there was a change.
"On Value Changed (Boolean)" should only fire if the value actually changed, or not?
Why is that so?
Comment
Answer by Kiwasi · Dec 15, 2014 at 06:51 AM
There was discussion during the beta as to how this function should behave. Check out this thread for more discussion
If you don't need this call back you can simply check if the value has changed and ignore