Reply To: Suggestion: NodeGraph node.OnGraphStarted BEFORE starting the node logic

NodeCanvas Forums General Discussion Suggestion: NodeGraph node.OnGraphStarted BEFORE starting the node logic Reply To: Suggestion: NodeGraph node.OnGraphStarted BEFORE starting the node logic

#14119
Gavalakis
Keymaster

Hello,

It is critical for the Graph.OnGraphStarted to be called before the nodes .OnGraphStarted callback, so that the graph gets a chance first to initialize anything needed, before the nodes can use it, thus the order here is important.
Having said that, the Graph.OnGraphStarted, also fires the EnterNode in the case of DialogueTrees, which means that, indeed, nodes .OnGraphStarted is called after the initial/first EnterNode, which may not be desirable.
I think the best thing to do, would be for me to change this, so that EnterNode, is ensured to be called only after the nodes .OnGraphStarted callbacks have been called.

If you are in a hurry and don’t want to wait for an update, I could maybe hack together a quickfix solution for you.
Let me know if so.
Thanks 🙂

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