The OnEnable and OnDisable callbacks of ConditionTasks are only called in the context of FSMs, since in FSM there exists a definite time that a condition can be considered as enabled/disabled (when parent state enters and exits respectively), but in the context of Behaviour Trees, a condition task does not have clear time at which it is considered enabled/disabled.
Having said that, I am thinking of calling back OnEnable and OnDisable, once when the Behaviour Tree starts, and once when it ends respectively though.
Will that work for you. Let me know what you think.
Thanks!
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.