Forums › 💬 NodeCanvas › 🗨️ General Discussion › ActionTask delta time. › Reply To: ActionTask delta time.
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; }
float elapsedTime { get; }
In ActionListPlayer.cs also add: public float deltaTime => Time.deltaTime; (we need this since ActionListPlayer implements ITaskSystem).
public float deltaTime => Time.deltaTime;
Let me know if that works for you 🙂 Thanks!