Unity Tip: Use Empty GameObjects as Hierarchy Folders

It’s very easy for a scene to become very cluttered, especially in the hierarchy where you can end up with thousands of GameObjects. The simple way to control this though is to create empty GameObjects that just hold the children. It can keep a large bulky project clean and hide a lot of assets and GameObjects.
Remember to make sure they have their origin set to world zero so things make sense though. Do this before nesting objects so their position isn’t affected by moving the parent to world zero. Unity will place newly created GameObjects where to scene editor camera is so they end up being in arbitrary places. After nesting three or four times, the local position of the children could be anything. It might not matter at first, but it could trip you up later on.

Tagged , , , . Bookmark the permalink.

Leave a Reply