Referencing Blackboard outside of NodeCanvas

Forums 💬 NodeCanvas 🗨️ General Discussion Referencing Blackboard outside of NodeCanvas

  • This topic has 0 replies, 2 voices, and was last updated 11 years ago by Gavalakis.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #15096
    brucas
    Participant

      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?

      #15100
      Gavalakis
      Keymaster

        Hello,

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

        Are you possibly NOT using C#?

        #15099
        brucas
        Participant

          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”

          #15098
          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

            🙂

            #15097
            brucas
            Participant

              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.