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

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

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #12314
    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?

    #12319
    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.

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

    #12324
    thelebaron
    Participant

    That worked perfectly, thank you!

    #12328
    Gavalakis
    Keymaster

    Great! Thanks for letting me know 🙂

    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.