Search Issue Tracker
Active
Under Consideration for 1.0.X
Votes
2
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
- Terms of Service agreement checkbox is invisible under specific OS system themes (UI Accessibility)
- Tile Palette: "Create New Tilemap" dropdown area is displayed in several colors
- Input.mousePosition stops syncing to touch input when using "DownloadHandlerTexture" in WebGL build
- UI Builder canvas doesn't update element styling accordingly when changing Active Theme for some Editor Authoring elements
- Selector Value buttons are not aligned with parameters in UI Builder
Add comment