So i have this graph with a subgraph that does some shared functionality.
I update the variables that are checked in code by user input. It all works when i put it all in one graph but clutters everything up. When i put it in the subgraph it does go into the subgraph but does never succeed. I debugged it and my actions are called.
I set the variables of my agents like this:
‘agent.SetVariableValue(string, object);’
Do i need to do something different to set the variables of a subgraph? I thought when using a Blackboard-Asset it will be shared across the same graph and it’s subgraphs?
Do you know a way?
Great Tool by the way, love it!
Here is the subgraph, as I could only upload one Image:
Hey
In theory this should work, do you possible have variables with the same name that could be conflicting?
Hey there!
i only use the variables of the Blackboard Asset in both graphs.
You could also try using the guid api to set the value to see if that helps. You can copy the variables guid by right clicking on a variable in an embedded or blackboard asset.
Hello dear Darren!
Working with version 1.0.6 I noticed that it’s not the variable that does not set in the shared blackboard, but the subgraph that is not running repeatedly.
But as soon as the editor is restarted - it works.
Could you please check if everything is ok with the running of subgraphs?
What were my actions:
- Created Graph and Subgraph
- Created a blackboard asset, added a variable there to change and set it to Shared
- Attached the just-created blackboard to both graphs, put log nodes in both graphs for the variable
- In the Main Graph ran a Subgraph and logged the variable in parallel
- Noticed that log in the Main Graph is working repeatedly, while in the Subgraph it displayed only once.
- If not reproduced, try to add/remove some variables in both graphs randomly, maybe you’ll trigger the bug.
- After the editor restart both Main Graph and Subgraph are running repeatedly.
Additional Info:
- Unity Version: 6000.0.25f1
- Windows version: Windows 10 Home
- The most interesting thing is that if you close all the graph windows before editor restart - the repeated run will work fine, but if you keep them open and restart - it will be broken like before.
- If in editor you close all the Graphs, you will have a different behavior comparing to the case when the graph windows are opened.
Thank you!
Hi @unity_30D89FB79A72844A3914,
Would you be able to provide a repo project with some repo steps & file a bug / ticket for this?
That would be great so we can prioritise checking for you as soon as possible