Question by
onikurayami · Apr 13, 2017 at 04:48 PM ·
script.updateloopsframes
Breaking out of problem code
is there a way to set a kind of timer at the start of every frame that will cause an event if the time between frames is too high, like 10 secs for example, if you're getting an fps of 0.1 then theres something wrong? I can't find a good way of doing this though aside from adding this hypothetical function to every objects's update function.
Comment
Fairy easy. Time.DeltaTime is the time the last frame took (beginning of last till now). If it's bigger than your threshold for an event.
Your answer
Follow this Question
Related Questions
HOW to USE LOOPS withinh Update??? 0 Answers
Update() and FixedUpdate() not running on C# scripts 0 Answers
[2D] Play animation backward. 1 Answer