Closed savolkov closed 2 years ago
There is a hidden method _refreshMonkeys
defined here that you can try. It's possible to call it without arguments to force all of the tree to refresh if I remember correctly. Or you can read the code and see how to refresh one particular monkey.
@Yomguithereal Thanks a lot! Didn't manage to find it on my own.
I'll write back with solution if I'll find it
Didn't work for me, but I've managed to get to monkey's update()
method and it worked.
Thanks!
Hey!
It so happened that I need to make monkey to recalculate value on data change outside the tree.
Example:
In my case it is possible to fire events in case of outer data change, however I can't find the proper way to trigger monkey recalculation.
What is the proper way to do it?