O'Reilly logo

Building Levels in Unity by Volodymyr Gerasimov

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

Components

All objects in the level are GameObjects: entities that don't do much by themselves but serve as containers for parameters. These parameters are added with the help of components. If you create an empty GameObject via GameObject | Create Empty and look at the Inspector window, you will find that it contains one mandatory component called Transform, which houses properties mandatory for a 3D space (Position, Rotation, Scale). But that is all there is to it; GameObject is just an abstract entity that occupies a location in the Scene. In order to transform it to something more meaningful, more properties, and therefore, more components need to be added.

Adding components

By adding more components, we will add more properties to our GameObjects, ...

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