How to set blackboard value at runtime?

NodeCanvas Forums General Discussion How to set blackboard value at runtime?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #15930
    roby65
    Participant

    I am trying to automatically  fill some variables on the blackboard at runtime (Player reference), is there a way to do it? Can someone point me in the right direction?

    #15943
    Gavalakis
    Keymaster

    Hello and sorry for the late reply!

    You can add or set blackboard variables in runtime through code and through the blackboard API.

    • Get a reference to the Blackboard you want to modify.
    • Use ‘blackboard.SetVariableValue(“myVariable”, 13.5f)’ (as an example).

    Please let me know if that is what you mean.

    Thanks!

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

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