Chapter 3. Singletons, Statics, GameObjects, and the World
Every level or game world in Unity is represented by a scene, and a scene is a collection of game objects situated inside a Cartesian 3D coordinate system with x, y and z axes. Units in a scene are measured in Unity units, and these correspond (for practical purposes) to meters. In order to script masterfully with Unity, it's critical to understand the anatomy of both scenes and objects and how interobject communication happens; that is, it's important to know how separate and independent objects in a scene can communicate with each other to make things happen as you expect. Consequently, this chapter focuses on the native Unity methods available to optimally search, reference, and access ...
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.