I think it’s logic to call OnEnable in this case :
-Condition was not checked last graph update and now we check it.
For OnDisable : Condition was checked last graph update but not anymore. It happen if the current running Leaf change in various way : a Decorator not anymore running, a conditionTask not anymore running etc.
It’s very hard to implement timeout without this because when BehaviourTree pause for example I had trouble to fix this.
Login
Register
By registering on this website you agree to our Privacy Policy.