A capital idea

The Transform component is listed as Transform with an uppercase T. When we refer to it in code, we use a lowercase t. In the Script Reference, it has an uppercase T again. But, if you've already made the mistake of using an uppercase T in your code, Unity threw you an error in the console window. What gives?

Unity's language is case sensitive, which means that a word with a capital letter is treated as a completely different thing than the same word with a small letter. So, transform and Transform are as different from each other as the words night and day.

Transform is a class. A class is like a blueprint that you use to make other things. You might implement power-ups in your keep-up game. Your capital-P Powerup class describes ...

Get Unity 4.x Game Development by Example Beginner's Guide 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.