Reply To: ActionTask delta time.

NodeCanvas Forums General Discussion ActionTask delta time. Reply To: ActionTask delta time.

#15349
Gavalakis
Keymaster

Hey,

Graph actually does have a “deltaTime” property, thus it is easy to add it to the ITaskSystem interface. You can do this by the following changes:

In ITaskSystem.cs, add:
float elapsedTime { get; }

In ActionListPlayer.cs also add:
public float deltaTime => Time.deltaTime; (we need this since ActionListPlayer implements ITaskSystem).

Let me know if that works for you 🙂
Thanks!

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