I’m trying to use a common blackboard (1 per prefab/parent gameobject) in a bunch of flowscripts on child gameobjects (being used as states since have a bunch of bound variables/real specific behaviors on them and afaik nodecanvas cant deal with bound sub flowscripts??).
Is there any way I can set the “Child” flowscripts to use the same blackboard as the parent object WITHOUT using an asset blackboard? Whenever I try and drag/select it a blackboard script from a different object to the child one it doesn’t show up.
Please find a modification file for GraphOwnerInspector attached, which will fix the drag and drop behaviour and allow you to assign any Blackboard to that “Blackboard” parameter. Please let me know if that works for you.
Follow up/related question thats come about since got that working – is there any way to bind a blackboard variable to a value on another object within the same hierarchy/scene/prefab (i.e. not the blackboard).
E.g. I’d like to bind a variable to light intensity on a light component, but when I click on the variable in the blackboard the only options are to Bind (self) and Bind to a static variable.
Thanks for your time and thanks again for the updated GraphOwner script!
Unfortunately this is not possible at least right now (although it has been requested once or twice in the past as far as I can remember).
The way to work around this for now, would be to create a small MonoBehaviour script with properties to act as an intermediate “bridge” and attach it in the same gameobject as the Blackboard. This way you are basicaly binding the variables to the properties declared on that “bridge” script, and those properties in turn can control any other reference you’d like. It requires the extra step of making the “bridge” monobehaviour scripts however, but right now it is the only work around.
Let me know if this works for you, but having said that, I will take a look at your requested feature once again.