Data binding to global blackboards or blackboards from your own unity script

Forums 💬 NodeCanvas ⚙️ Support Data binding to global blackboards or blackboards from your own unity script

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #18643
    kevynm
    Participant

      Hi! I would like to ask if there is a feature where you have your own monobehaviour script and you want to do data binding to a global blackboard variable or any blackboard? Thanks!

      #18646
      Gavalakis
      Keymaster

        Hello,

        Can you please explain a bit more of what you mean? Sorry.
        Blackboard variables can be data bound to component properties of the same gameobject as the gameobject the Blackboard is attached if that is what you mean yes 🙂
        Take a look at this documentation section.

        Let me know if you mean something different.
        Thanks.

        #18645
        kevynm
        Participant

          Nevermind, I found a solution for it. I retrieved the variable version of the blackboard properties to have a reference of the values instead of always getting it every update to see if there are changes.

          #18644
          Gavalakis
          Keymaster

            Hey,
            Thanks for letting me know.
            Yes you can get and store the Variable object if you want. Also, that Variable object has an event you can subscribe to onValueChange. Here is an example:

            Cheers!

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