Hello @Darren_Kelly,
Unfortunately I’m running into 2 more issues around deserialization.
I’ve tried implementing the correct flow into my project and I’ve updated the behavior package from 1.0.2 to 1.0.3, deleted runtime assets and re-created them. It’s fixed most of my construct type errors, but still managed to hit a single instance (Had 14 errors, now just a single 1). I’m working around it for the moment, but will circle back to this once I can reproduce the error in an isolated/separate project.
See comment #20 for this specific issue.
But I’d like to focus your attention to loading the graph state and the built-in debugger. I ran into another issue…
For some reason states aren’t the same upon loading/deserializing? The navigation node gets stuck in the Waiting status instead of the Running status it was saved as (Even though the logic does still run?). And the choose target position node is no longer marked as Success.
Is this intended? Are ‘processed’ nodes not recovered?
When I debug to an agent, my graph originally looks like this:
As soon as I deserialize/load, my graph looks like this:
After loading, the navigation node seems to be now set to the Waiting status, and is unable to progress to the final node. And the choose target position node is no longer marked as Success.
I’ve attached a debugger to the specific navigation code, and the logic actually does run and it does indeed return a Success status. But after it returns the Success status, it does not update the visual in the debug mode, nor does it progress to the final log node after it. I’ve tried re-opening the behavior graph thinking it was a bug, but the problem does persist. I am also unable to trigger a Toggle Breakpoint on the node itself after loading it’s state.
Perhaps I’m doing something incorrect or I’m misunderstanding. But shouldn’t the state of the graph be the same as to when it was saved?
Here’s a repo reproducing this: Release bug-3 · adrian-miasik/unity-behavior-bug-reports · GitHub
Reproduction steps: unity-behavior-bug-reports/README.md at develop · adrian-miasik/unity-behavior-bug-reports · GitHub

