Referencing Blackboard outside of NodeCanvas

NodeCanvas Forums General Discussion Referencing Blackboard outside of NodeCanvas

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #9379

    I am trying to access the Blackboard from a script, but I am having trouble referencing it.

    I can’t get the Blackboard to be available in MonoDevelop as a choice-

    public Blackboard blackboard; (this doesn’t work)

    then later when I try to GetComponent<Blackboard>(); that doesn’t work either.

    What am I doing wrong here?

    #9383
    Gavalakis
    Keymaster

    Hello,

    What do you mean that it doesn’t work?
    Do you get an error?

    Are you possibly NOT using C#?

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

    #9382

    I am using C#. Blackboard just isn’t available for me as I am typing it out in the declaration. ‘Blackboard’ is red and I mouse over and it says “errorCS0103: the name ‘Blackboard’ does not exist in the current context”

    #9381
    Gavalakis
    Keymaster

    Ah,

    It’s in a namespace NodeCanvas

    Here are the other namespaces:
    NodeCanvas.Variables
    NodeCanvas.BehaviourTree
    NodeCanvas.FSM
    NodeCanvas.DialogueTree

    Hope that helps

    🙂

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

    #9380

    Haha I was so close to figuring that out on my own! 😛 Thanks for the help 🙂

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