How to add a bound property or field to Blackboard via script?

Forums 💬 NodeCanvas ⚙️ Support How to add a bound property or field to Blackboard via script?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17844
    thelebaron
    Participant

      Hi, I’m just trying to simplify some of my workflow, so instead of manually going in and adding the things by hand I can just click an editor button when I want to setup a new blackboard. I can easily add a variable, but the bound aspect is somewhat beyond me, couldn’t quite figure out the reflection editor code when delving into BlackboardEditor.cs

      m_Blackboard.AddVariable(“isDead”, m_Character.isDead);
      So essentially how would I turn the above into a bound field?

      #17847
      Gavalakis
      Keymaster

        Hello,

        Here is how you can create a variable and then bind it to a property or field.

        Let me know if that works for you.
        Thank you.

        #17846
        thelebaron
        Participant

          That worked perfectly, thank you!

          #17845
          Gavalakis
          Keymaster

            Great! Thanks for letting me know 🙂

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