The world, time, and updates

A Unity scene represents a collection of finite GameObjects inside the same 3D space and that also share the same timeframe. Every game needs to establish a unified concept of time to achieve synchronized animation and change, because animation means change over time. In Unity, the Time class is available for reading and understanding time and its passing in script. Working with this class is therefore a critical skill for the creation of predictable and consistent motion in your games. More on this shortly.

Every game has a frame rate, which is defined in frames per second (FPS). This rate is viewable from the Stats panel in the Game tab. The FPS tells you how many times in 1 second Unity is able to loop or iterate ...

Get Mastering Unity Scripting now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.