Chapter 19. Variables and Components
This chapter introduces you to the many variable and component types used throughout Unity C# programming. By the end of the chapter, you will understand many of the 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 on screen, and character animation.
Introducing Variables
To recap a bit of Chapter 17, “Introducing our Language: C#,” a variable is just a name that can be defined to be equal to a specific ...
Get Introduction to Game Design, Prototyping, and Development: From Concept to Playable Game with Unity and C# 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.