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

Object parenting

You can group objects by parenting them to other GameObjects, empty or not. In Unity, it can be done by dragging and dropping the GameObjects on top of each other in the Project or Hierarchy window.

Object parenting

There is one thing to be aware of: it is important to understand that the transformation of the child is no longer relative to the global space, but to its parent object. So whenever the parent object moves, it will move all its children with it. This is also the case for scale and rotation.

Parenting and prefabs

When it comes to prefabs, parenting is quite simple: You freely modify and add any children to the parent object in the Hierarchy ...

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