I just tried your script here and Pausing the behaviour trees works fine. I mean they actually get paused apart from the icon showning them paused in the inspector.
To test it by the way, I just added this in your script:
1
2
3
4
5
6
7
voidUpdate(){
if(Input.GetKeyDown(KeyCode.Space)){
PauseSecondaryTree();
}
}
Does doing the above not work for you?
Thanks.
(PS: Sorry for the code formatting bug. It’s now fixed)
Join us on Discord: https://discord.gg/97q2Rjh
Login
Register
By registering on this website you agree to our Privacy Policy.