#Creating customized flow node in behavior graph for the first time...

1 messages · Page 1 of 1 (latest)

pastel folio
#

Hello fellas! I am recently self-teaching Unity's latest behavior system via behavior graphs. And I have been struggling to create my own customized flow node to randomly select the next branch to execute with weighted probability.

So basically, I want the customized flow node to read a blackboard variable whenever the node executes (OnStart()) that is controlled and manipulated dynamically outside of the graph. What I did is this:

    [SerializeReference]
    public BlackboardVariable<float> ChanceVariable;

What I expect to see is when I open up the node's inspector panel, I would see an empty bbv called "ChanceVariable", waiting for me to drag a bbv into its empty slot to establish a direct reference.

However what I see is nothing. Like so...

A thousand thanks in advance!