If you are referring to ConditionTasks executed in the context of an FSM (transitions), then you can use the “OnEnable” and “OnDisable” overrides for this.
In the context of Behaviour Trees and because a ConditionTask, has no proper time in which it can be considered “enabled/disabled”, the overrides are not called, but I am thinking that for the shake of consistency, they should be when the Behaviour Tree starts and stops respectively.
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.