Reply To: When do OnEnable/OnDisable get called in a ConditionTask?

NodeCanvas Forums Support When do OnEnable/OnDisable get called in a ConditionTask? Reply To: When do OnEnable/OnDisable get called in a ConditionTask?

#13187
Gavalakis
Keymaster

Hello,

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