Reported here: https://discussions.unity.com/t/multiple-subgraph-instances-make-it-difficult-for-me-to-pass-variables-between-graph-and-subgraph-correctly/1562005
Steps to reproduce:
- Open an empty project with Unity 6.0.26f or above
- Install com.unity.behavior@1.0.6
- Import the provided repro .unitypackage to the project
- Open the Subgraph scene and run the scene
- Select Cube1 and check Blackboard Variables.Rotate in the Inspector panel. This means that Cube1 will rotate 180 degrees along the Y axis within 2 seconds
- Select Cube2 and check Blackboard Variables.Rotate in the Inspector panel. This means that Cube2 will rotate 360 degrees along the X axis within 4 seconds
- Select Cube1 again and find that the Blackboard Variables of Cube1 are overwritten by the Blackboard Variables of Cube2
Actual results:
- Blackboard Variables of Cube1 are overwritten by the Blackboard Variables of Cube2
Expected results:
- BehaviorAgent Blackboard Variable are not overwritten by other agent using the same graph.
Reproducible with versions:
Unity 6.0.26f
Not reproducible with versions:
Can’t test with versions:
Tested on (OS):
Notes: