BD Pro pausing and resuming not working

Cheo

Active member
Hello, tonight I tried pausing and resuming a simple tree running two wait tasks, but was surprised to see that it couldn't handle that. More specifically, when using StopBehavior(true), the tree pauses when he reaches the end of the current Wait task, but then never does anything unless the tree is fully restarted. Moreover, even with Start When Enabled and Pause When Disabled set to true on the Behavior Tree component, the same issue happens when enabling and disabling the component in the inspector. Here's a quick video illustrating all of that :


Am I missing something here or is this an actual bug ? Thanks.
 
Pausing works, but this is a wait specific issue. Wait uses Time.time to determine how long to wait and it doesn't account for pausing. I've made a note to look at this for the next update.
 
Ah.. I feel like my intentions were miscommunicated.
I wasn't referring to the editor's Pause, but rather to the fact that when behaviorTree.StopBehavior(true); is called, the time for Wait/SharedWait still continues to elapse.
As a side note, it would be nice if the paused state is indicated in some way in the BDP editor.
 
I editing my post - take a look at my new response :) It is a wait specific issue.

I'm still mostly doing fixes instead of new features but have written your pause suggestion down.
 
Oh, I see. Thank you for your quick response every time. English is not my native language, so I write very slowly and awkwardly. I would appreciate it if you could excuse my possible rudeness. 🙏
 
Back
Top