Search Issue Tracker
Fixed
Fixed in 1.0.16
Votes
3
Found in [Package]
1.0.6
Issue ID
BEHAVB-146
Regression
No
RunSubgraph Subgraph Variable don't pass assigned BehaviorGraph from the node
Steps to reproduce:
- Install `com.unity.behavior` 1.0.6 or above
- Create a three Behavior graphs ({}Nested Subgraph{}, Subgraph and {}Parent Graph{})
- Open {}Nested Subgraph{}: Add and Connect a {{Log Message}} node ("Hello World") to the {{On Start}} node.
- Open {}Subgraph{}:
## Add and connect a sequence of {{Log Variable}} and {{Run Subgraph}} node to {{{}On Start{}}}.
## Add a blackboard variable of type `Subgraph` named "Nested Subgraph"
## Assign the subgraph variable to both the {{Log Variable} and {{Run Subgraph}} nodes
- Open {}Graph{}:
## Add and connect {{Run Subgraph}} to {{On Start}}
## Assign the Subgraph graph asset to the {{Run Subgraph}} Node
## Inspect the {{Run Subgraph}} node and set the "Nested Subgraph" field with Nested Subgraph graph asset
- Add the Parent Graph to a gameObject named "Agent" in the scene
- Enter playmode
Expected Result
Console log contains:
- `[Agent] Nested Subgraph = "Nested Subgraph"`
- `Hello World`
Actual Result
Console log contains: `[Agent] Nested Subgraph = null`
Workaround
Always linked a blackboard variable instead of assigning subgraph directly on the {{Run Subgraph}} node inspector. (See https://discussions.unity.com/t/nested-dynamic-behavior-subgraphs/1699129/5).
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Economy package throws a CS0619 error in the Console when installed together with Deployment package
- “Screen position out of view frustum” errors are thrown when zooming out in the Scene view with Rect Tool selected
- Only one [UnityOneTimeSetUp] method runs when there are 2 of them in different classes
- Crash with multiple stack traces when Sprites with a high resolution get Sliced to a Grid with a small cell size in the Sprite Editor
- The UI Builder's Data Source Object picker cannot be navigated after triggering a circular dependency dialog box
Add comment