A Unity editor tool to clean up and organise the scene hierarchy. This tool sorts and renames GameObjects in the active scene to maintain a clean and organised hierarchy.
- Sorts GameObjects in scene alphabetically.
- Renames duplicated GameObjects.
- Open Unity and load sample scene.
- Go to
Tools > Clean Up Scene Hierarchy
in the Unity menu bar. - Click the
Clean Up Hierarchy
button.
This repository includes a Unity sample scene with some GameObjects. You can use this scene to test the tool.
Open the sample scene and click the Clean Up Hierarchy
button in the Scene Hierarchy Cleaner
window to sort the GameObjects. Note that GameObjects won't be sorted if they are prefabs.