Prefab variants fail with “stale parent” after editing the base tree

DeVoid

New member
Using BDP 3.3.4 and Graph Designer 3.5.1.
When I edit a base prefab’s behavior tree, variants with tree overrides fail to start when spawned at runtime:

Graph authoring layer … was compiled from a stale parent.

Opening each affected variant’s tree in the Behavior Designer editor fixes it, but I have to repeat this whenever the base tree changes.
Shouldn’t these variants refresh automatically? Is there a workaround that doesn’t require reopening every variant?
 
It looks like your behavior tree is using old authoring data. I just created a new tree/prefab variant and didn't receive the error.

With that said, you can update all of the trees with Tools -> Opsive -> Behavior Designer -> Upgrade Project Serialization

That should fix it. If you still get the error and can list the steps to reproduce from a fresh project or have a repro package I can take a closer look.
 
Yeah, I did it before and ran it again now just in case, but it still happens. Here's a small repro. Open Repro.unity and press Play without opening the variant's tree first. Upgrading fixes it, but editing the base again brings the error back.
 

Attachments

Thanks, I see the issue. Version 3.3.4 is in a weird state right now because of the Asset Store processing (it shouldn't have been released earlier today), but I'll quickly patch that and include it in version 3.3.4 that is being built right now.
 
Thanks, I see the issue. Version 3.3.4 is in a weird state right now because of the Asset Store processing (it shouldn't have been released earlier today), but I'll quickly patch that and include it in version 3.3.4 that is being built right now.
Thanks for your quick help as always :)
 
Thanks, I see the issue. Version 3.3.4 is in a weird state right now because of the Asset Store processing (it shouldn't have been released earlier today), but I'll quickly patch that and include it in version 3.3.4 that is being built right now.
Hey! Just wanted to say that stale parent issue is fixed, but now any prefab change anywhere in the project (even without behaviour trees) triggers a graph prefab dependency refresh (takes up to 12s in my project on each prefab save), which honestly makes working with prefabs a pain

1794219248179.png
 
You're right - I didn't test editing other prefabs. I will do a hotfix today that has this fixed. Thanks for the heads up.
 
Back
Top