Using single bound Blackboard on multiple objects

FlowCanvas Forums Support Using single bound Blackboard on multiple objects

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #3205
    sky
    Participant
    Hi,
    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.
    Rough image of what I’m trying to do:
    Image
    #3206
    Gavalakis
    Keymaster

    Hello,

    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.

    Thanks!

    Join us on Discord: https://discord.gg/97q2Rjh

    Attachments:
    You must be logged in to view attached files.
    #3208
    sky
    Participant

    Oh that works, thank 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!

    #3217
    Gavalakis
    Keymaster

    Hello and sorry for the late reply.

    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.

    Thanks!

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.