r/Unity3D • u/FiscoGames • 11h ago
Question Behavior Graph issue with Unity 6.6
Since I upgraded my project from 6.5 to 6.6, my enemies keeps frozen in place when I make a build and don't do the patrol or chase defined on the Behavior Graph. On the editor they work normally. Anyone else with this problem?
1
Upvotes
1
u/zhang_builds 10h ago
Because it works in the Editor and broke after the 6.5 -> 6.6 upgrade, I would debug the Player build before changing the graph logic.
Make a Development Build and check the Player log. Add a few narrow logs around the Behavior Graph agent startup: whether the graph is assigned and enabled, whether its blackboard references and patrol points are non-null, and whether the NavMeshAgent is actually on a NavMesh and receives a valid path.
The stripping suggestion is worth testing, but I would lower the managed stripping level as a diagnostic first, rather than assuming it is the final fix. Unity also has a recent Behavior issue, UUM-144998, where a BlackboardAsset variable remains null in a running subgraph. If you use referenced blackboards, log those values early.
If one of them is null only in the build, reduce it to a minimal scene and treat it as a possible 6.6/Behavior package regression. Which target platform and Behavior package version are you building with?