Reply To: ActionTask delta time.

Forums 💬 NodeCanvas 🗨️ General Discussion ActionTask delta time. Reply To: ActionTask delta time.

#13285
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!