Game Development Reference
In-Depth Information
When game objects have a child relationship to a parent object, their Transform position becomes
relative to the parent instead of world zero. If you move the parent object, the child objects will
maintain that relative positioning. Select the Snazzy Cubes empty game object in the Hierarchy view.
Using its gizmo that now appears in the Scene view, grab a handle and move it around. As you can
see, all of the cubes are moving with it (Figure 3-24 ).
Figure 3-24. Child objects moving with the parent object
Select one of the prefabs, then change its Transform scale z value to 2 in the Inspector. Now you
have a rectangular block instead of a cube (Figure 3-25 ). Even though this game object was created
from a preconfigured prefab, you can still edit it individually. Set the scale value for z back to 1.
Search WWH ::




Custom Search