O'Reilly logo

Unity 3D Game Development by Example by Ryan Henson Creighton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 Language 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".

Capital "T" 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required