- Home /
This question was
closed Aug 27, 2015 at 09:54 PM by
getyour411 for the following reason:
The question is answered, right answer was accepted
Question by
coolblue2000 · Aug 27, 2015 at 09:00 PM ·
guitimer
Time.deltaTime appears to be running fast
I am keeping a running total of delta time in order to display a timer on screen however it looks to be too fast (over twice the speed of real time).
I simply have a variable which I increment with the delta time in the OnGui() method
Has anyone any idea why this may be?
Comment
Best Answer
Answer by Dave-Carlile · Aug 27, 2015 at 09:01 PM
OnGUI
can be called multiple times per frame to allow for events and formatting and such.
Great, thanks I have added the code to Update and it now works fine.