Organizing level geometry as empty GameObject children
Many beginners working with 3D modeling tools have trouble navigating and orienting the scene being edited once it contains many objects of different sizes. A simple yet effective approach is to make all related 3D objects children to an empty GameObject, positioned at the “center” of those objects. You can use this method if you want to quickly create a more detailed prototype, maybe based on an actual building. We can combine the techniques that we used in the previous recipe to extrude a complex building. In this recipe, we will demonstrate how to parent GameObject whose children are a yellow floor plane, a blue staircase, and a green cone. Following the same process, a building of any shape can be made using ProBuilder:
Figure 7.23: Collection of ProBuilder objects as children of an empty GameObject
Getting ready
You’ll need the ProBuilder package installed for this recipe, and also grid...