[1Ed] 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.

Errata

  • p. 296 – The heading of the warning should read: “VARIABLE NAMES WILL CHANGE IN THE INSPECTOR” not “CHAGE”

Lecture Notes

Tutorial Files