How to set blackboard value at runtime?

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

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

      #13114
      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!

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