Color-code your Hierarchy with rules, labels, and icons -
organize any scene at a glance.Hierarchy Colorizerbrings visual structure to your Unity Hierarchy window. Assign background colors, text styles, and alignment to GameObjects using flexible rules - or override any row manually with a single click. Match by name pattern, tag, or layer and instantly see which objects are managers, controllers, UI elements, cameras, and more.Rule-Based ColoringDefine rules that match GameObjects by name (contains, exact, starts with, ends with), tag, or layer. The first matching rule wins - drag to reorder. Each rule controls background color, text color, bold/italic style, and text alignment.Per-Object Color OverrideHover over any row to reveal a button. Click it to assign a manual background color directly to that GameObject - overrides all rules and label colors. Hover again to reveal an × to remove the override. Per-object colors are saved to the settings asset and shared with your team via version control.Section DividersSet any rule's alignment to Center to render matching rows as full-width section headers with accent lines. Use naming conventions like --- Gameplay --- or == UI == to structure large scenes visually.Hover Active ToggleWhen enabled, hovering over any Hierarchy row reveals a checkbox to toggle the GameObject's active state instantly - no Inspector needed. Fully undoable with Ctrl+Z.Color InheritanceEnable Apply Colors to Children and unmatched child GameObjects automatically inherit their nearest matched ancestor's color - whether it comes from a rule or a manual override - slightly darkened to distinguish inherited from directly assigned rows.Unity Label & Icon SyncRows are automatically colored when you assign Unity's built-in colored label icons. Custom icons set via Other... replace the default box icon on the row.Component IconsUp to 4 component icons are displayed on the right side of each Hierarchy row - no more opening the Inspector just to check what's attached.Zero Runtime Impact100% editor-only. No scripts, no components, and no code are included in your build.Key Features- Match by name pattern, tag, or layer- Per-object color override with highest priority- Background color, text color, bold, italic per rule- Center alignment creates section dividers with accent lines- Hover active toggle - activate/deactivate without opening Inspector- Color inheritance for child GameObjects (rules and overrides)- Unity label color sync (8 built-in colors)- Custom icon display on rows- Component icons (up to 4 per row)- Alternate row zebra-striping- Live preview before saving- Drag-to-reorder rules- Master on/off toggle + keyboard shortcut- Settings saved as .asset - commit to share with your teamRequirementsUnity 2021.3 or newer. Compatible with Built-in, URP, and HDRP (editor-only tool).Editor-only tool - zero runtime overhead and no impact on build size.The colorizer hooks into EditorApplication.hierarchyWindowItemOnGUI and runs only while the Hierarchy window is visible. Per-object color overrides are stored via GlobalObjectId for persistent identification across sessions. All settings are serialized to a ScriptableObject asset at Assets/TwoGreenPigs/HierarchyColorizer/Editor/HierarchyColorizerSettings.asset -safe to commit to version control for team sharing.- Unity 2021.3 LTS minimum (tested up to Unity 6)- Compatible with Built-in RP, URP, and HDRP- No third-party dependencies- Editor-only scripts - excluded from builds automatically- Settings stored as .asset - version control friendly- Per-object colors persist via GlobalObjectIdThis asset was developed with the assistance of Claude Code (Anthropic), an AI coding tool. The code was generated iteratively using Claude Sonnet and Opus, with manual review, testing, and bug fixing applied at each step by the publisher. All features were verified and validated inside the Unity Editor before release.



