how would i make void update from scratch?
void update is called each frame
however, lets say we dont have a magic function which is called each frame, and we are working for unity, and we have a one job: create void update
^ this because if i just asked how does void update works, you'd say it does stuff each frame. googling "how does void update works" shows only how to use it...
so, what i got in my head first, was implementing it through cycle: while(true)... but then our processor does something inside while() as fast as our CPU can, and that means that everything pauses and lags so that this loop would end at some point
i believe theres something i just dont know
Your answer
Follow this Question
Related Questions
Calling function every x seconds but objects disappearing instantly 1 Answer
How to access a bool from buttonclick scr. into another script 0 Answers
can I invoke function faster than Update()? 1 Answer
My random number function keeps returning not allowed numbers, why? What's the solution? 0 Answers
How can I make A Object have the same Scale as B Object? 0 Answers