code in void start only gets used once
but code in update gets used again and again
code in void start only gets used once
but code in update gets used again and again
Pretty much, yeah!
“… but code in update gets used again and again”
where “again and again” means: every frame
yes
Keep this reference handy, you can see which things loop and which things will only execute one time (and their order).
https://docs.unity3d.com/Manual/ExecutionOrder.html
Also keep in mind that “every frame” only applies whilst the game object / script are active (either via code or Unity inspector checkbox). If they are not active, the update (and other) related events will not trigger and run.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.