Editor Freeze

Corbs

New member
With the new version of BD Pro, the editor window for the tree is causing the whole editor to freeze if its in the foreground.
Editor version is 6.2
 
I am not able to reproduce this. Can you try a new project? Also, if you are working with prefabs make sure the auto serialize preference is disabled.
 
This is happening to me as well. I just bought the product, imported it into my project, loaded up Events sample scene and while I was looking at the Behaviour Tree as the agents were doing their thing (trying to get used to everything, basically) suddenly my Editor would freeze for a few seconds. Then a few seconds later it'd freeze indefinitely and I have to shut it down with Task Manager. I tried another sample scene - MeleeCombat - and same thing occurs when Agent Health gets to 60 and Opponent Health gets to 40. Using Unity ver. 6000.0.23f and Behaviour Designer Pro ver. 2.1.2

EDIT: It appears that the Behaviour Tree Window in particular is the culprit for me as well as the OP - if I run the same MeleeCombat scene without the Behaviour Tree Window open then it runs without any issues. If I have it open while the behaviours are executing then I have a 100% reproduction of freezing the entire Editor.
 
Last edited:
Hmm, can you run the profiler to see where the spike is coming from? Also, just to be sure, you have the auto serialize preference disabled, correct?
 
I have been looking around trying to find where to disable auto serialize preference, where can I do that? Google doesn't seem to be able to lead me down the right route for that
 
It happens with only one specific tree for me, I am also not familiar with the auto-serialize preference, if you could expand on that ?
 
@RocketRacer @Corbs Hi fellas, after a little search I believe that what @Justin is referring to is actually a parameter called "Auto Save Prefab" in the Edit > Preferences > Behavior Designer tab, see the attached screenshot. This may be confusing at first, but from what I understand "save" and "serialize" are interchangeable terms in this context, although "serialize" is the more technically appropriate one.
 

Attachments

  • BD Auto Save Prefab.png
    BD Auto Save Prefab.png
    92.4 KB · Views: 10
@RocketRacer @Corbs Hi fellas, after a little search I believe that what @Justin is referring to is actually a parameter called "Auto Save Prefab" in the Edit > Preferences > Behavior Designer tab, see the attached screenshot. This may be confusing at first, but from what I understand "save" and "serialize" are interchangeable terms in this context, although "serialize" is the more technically appropriate one.
Cheers for the explanation! And yea I can confirm that it's off for me, seems to be a default setting upon downloading the package.
 
I also experience a freeze when launching a tree view in the editor. The culprit is CanDetectObject, or more specifically, ReturnedObject. If ReturnedObject is empty, there's no freeze, but as soon as I fill it or assign a variable, it freezes immediately. This doesn't happen outside the editor.
 

Attachments

  • Снимок экрана 2025-09-24 161706.png
    Снимок экрана 2025-09-24 161706.png
    163.4 KB · Views: 7
Thanks, I've reduced the number of callbacks after a variable has been assigned. I'll send the three of you a new build to see if that fixes it.
 
Can you run the profiler with the editor enabled to see the cause? I'm not able to reproduce a slowdown.
 
and that's it, it freezes completely
If necessary, I can show you something specific.
 

Attachments

  • Снимок экрана 2025-09-24 180835.png
    Снимок экрана 2025-09-24 180835.png
    218.7 KB · Views: 5
  • Снимок экрана 2025-09-24 181028.png
    Снимок экрана 2025-09-24 181028.png
    231.1 KB · Views: 5
Ok, this looks like a runtime issue. But maybe only occurs due to an editor callback? My change from before definitely doesn't address this.

Can you enable deep profiling and see what specific method is causing the slowdown? Since it's not editor related you don't need to enable editor profiling.
 
Thanks. This is definitely related to setting the variables and the editor refreshing the shared variable list. Are you able to send me the scene that you are using so I can see if I can trigger the same slowdown on my machine?
 
Back
Top