Hierarchy Helper
Overview
The Hierarchy Helper is a powerful all-in-one tool for organizing, cleaning, analyzing, and batch-editing your scene hierarchy. Access it via Tools → BEE → BEE Hierarchy.
Window Layout
The Hierarchy Helper window is divided into sections:
- Search and Scope — Filter which objects to work with
- Filters — Additional filtering options
- Quick Actions — Common operations
- Batch Operations — Bulk editing tools
- Analysis & Info — Scene statistics
Scope Selection
Choose which objects your operations will affect:
| Scope | Description |
|---|---|
| Selection | Only currently selected GameObjects |
| Filtered | Objects matching your search and filter criteria |
| Scene | All objects in the current scene |
Search & Filters
Text Search
Type in the search field to filter objects by name. The search is case-insensitive, matches partial names, and updates results in real-time.
Filter Options
| Filter | Description |
|---|---|
| Active Only | Show only active GameObjects |
| Inactive Only | Show only inactive GameObjects |
| Prefabs Only | Show only prefab instances |
| Root Objects Only | Show objects with no parent |
| Has Missing Scripts | Show objects with missing script references |
| Layer | Filter by specific layer |
| Tag | Filter by specific tag |
| Component | Filter by component type name |
Quick Actions
| Action | Description |
|---|---|
| Remove Missing Scripts | Finds and removes all missing script references. Shows count before removing and asks for confirmation. Supports Undo. |
| Strip Empty GameObjects | Deletes GameObjects that have no components (except Transform) and no children. |
| Remove Duplicate Components | Finds and removes duplicate components of the same type on each object. |
| Clean Scene | One-click operation that runs both Remove Missing Scripts and Strip Empty GameObjects. |
Batch Operations
Find & Replace
Rename multiple objects at once by finding and replacing text in object names.
Example: Find Enemy_Old, Replace Enemy_New
Result: Enemy_Old_01 becomes Enemy_New_01
Add Numbering
| Setting | Description |
|---|---|
| Prefix | Text added before the number (e.g., "Item_") |
| Start | Starting number (default: 1) |
| Digits | Padding width (2 = 01, 02; 3 = 001, 002) |
Snap to Grid
Align object positions to a grid. Enter the grid size and all object positions will be rounded to the nearest grid point.
Add/Remove Components
Enter the component type name (e.g., "BoxCollider", "Rigidbody") to batch add or remove components from all objects in scope.
Analysis & Info
| Statistic | Description |
|---|---|
| Objects in Scope | Total count of objects |
| Active / Inactive | Count of each state |
| Prefab Instances | Number of prefab instances |
| Missing Scripts | Count of missing script references (warning if > 0) |
| Empty GameObjects | Count of empty objects (warning if > 0) |
| Duplicate Names | Objects sharing the same name (button to select them) |
| Max Hierarchy Depth | Deepest nesting level in scope |
| Component Statistics | Top 10 most-used component types with counts |