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?
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.