Is there a way to save the blackboard with a graph asset?

Forums 💬 NodeCanvas 🗨️ General Discussion Is there a way to save the blackboard with a graph asset?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #13704
    asusralis
    Participant

      I have an FSM that animates a sprite renderer. I want to use this blackboard with a lot of different objects, but it seems like the blackboard isn’t saved with the graph.

      For example, let’s say that I have sprite animation references that need to be changed depending on what character the FSM is attached to. I define them in the blackboard to I can easily plug in whatever animations I want: https://i.imgur.com/1ZUdSIz.png

      Now, when I save this graph I made that uses these references, it shows I have defined parameters when viewing the graph asset, but when I drag the graph into an object it doesn’t create them in the blackboard! https://i.imgur.com/s390wbf.png

      Can you explain to me the best way to do what I’m trying to do?

      #13707
      Gavalakis
      Keymaster

        Hello and sorry for the very late reply (I was ill).

        While there is no ability to save the Blackboard as an asset right now (looking into this), there is a nifty toolbar command to automatically create blackboard variables of all “Defined Parameters” in the graph.
        This is (in the NC Graph Editor window), under “Edit -> Promote Defined Parameters To Variables”.
        This will search your graph for defined parameters and fill in the blackboard with required variables of that name and type.

        Let me know if that works for you.
        Thanks!

        #13706
        asusralis
        Participant

          This actually helps a lot, but it would be nice to be able to save the blackboard as well (or make it a little more streamlined). Either way, thanks!

          #13705
          Gavalakis
          Keymaster

            Hey,

            Thank you. I just wanted to let you know that there are some improvements being “cooked” into making this a lot easier and streamlined to work with for a future version 🙂

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