Chapter 20
Variables and Components
This chapter introduces you to many of the types of variables and components used throughout Unity C# programming. By the end of the chapter, you will understand the most common types of C# variables and some important variable types that are unique to Unity.
This chapter also introduces you to Unity’s GameObjects and components. Any object in a Unity scene is a GameObject, and the components that comprise them enable everything from the positioning of a GameObject to physics simulation, special effects, displaying a 3D model onscreen, and character animation.
Introducing Variables
To recap a bit of Chapter 18, “Introducing Our Language: C#,” a variable is just a name that can be defined to be hold a specific ...
Get Introduction to Game Design, Prototyping, and Development 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.