Reply To: [Changes] Update Mode Design

NodeCanvas Forums Support [Changes] Update Mode Design Reply To: [Changes] Update Mode Design

#14621
Gavalakis
Keymaster

Hello again,

The data structure of the graph is separated. We eventually need to tell the graph when to update though. If it is done through GraphOwner or MonoManager, it does not really matter. The GraphOwner is in control of the graph and in this case, it tells the graph to “auto update”. It could also tell the graph to not do that of course and update it by other means, or provide parameters to tell the graph to update in another program loop (like fixed update).

If you want you can simply do this and utilize the graph itself manually.
Event the Blackboardis not required in this example.

You can also do this if you want to use a GraphOwner. If you do, you also have to set the “OnEnable” option to “Do Nothing” since we are starting the behaviour manually.

With that said, I could add an “updating” option in the GraphOwner.

Regarding FixedUpdate in general, it is really intended to be used for physics only and not as a way to make framerate-independent updates. For framerate-independent updates, Time.deltaTime should be used to adjust things that specifically matter to time, but it’s your game so you can use whatever you like 🙂

Finally and regarding SubDialogueTree, it is indeed the only sub-node that still uses “autoUpdate = true”. I have just changed that now. I can send you the changes if you want ( to your registered email? ).

Thanks.

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