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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Add comment