NodeCanvas Forums › 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!
Join us on Discord: https://discord.gg/97q2Rjh
Username
Password
Remember Me
By registering on this website you agree to our Privacy Policy.
Email
Username or Email