uloop-get-hierarchy

Export Unity scene GameObject hierarchies as JSON with configurable depth and components.

500|44|Updated Jun 15, 2025
One-click install
npx skills add https://github.com/hatayama/unity-cli-loop --skill uloop-get-hierarchy-hatayama
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: uloop-get-hierarchy
Source: https://github.com/hatayama/unity-cli-loop/tree/main/.agents/skills/uloop-get-hierarchy
Command: npx skills add https://github.com/hatayama/unity-cli-loop --skill uloop-get-hierarchy-hatayama

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Quickly obtain a structured representation of a Unity scene's GameObjects and their parent-child relationships to simplify debugging, auditing, and automated analysis of scene structure.

Core Features & Use Cases

  • Hierarchical Export: Walk the scene tree from a specified root or from selected GameObjects and return a nested JSON representation.
  • Component Insight: Optionally include component lists per GameObject or use a component lookup table for condensed information.
  • Filtering & Scope Control: Limit traversal depth, include inactive objects, and choose whether to include full paths to focus on relevant subsets of the scene.
  • Use Case: Use this Skill to audit UI element nesting in a complex scene, generate inventories of objects and components for automated tests, or produce inputs for tooling that analyzes scene complexity.

Quick Start

Use the uloop-get-hierarchy skill to return the current Unity scene's GameObject tree as JSON including components and full paths if desired.

Frequently Asked Questions about uloop-get-hierarchy

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I get the Unity scene hierarchy as JSON for debugging?

To export the Unity scene hierarchy as JSON, this skill walks the scene tree from a specified root or selected GameObjects and returns a nested representation of parent-child relationships. It outputs structured data ideal for debugging object placement and auditing scene complexity.

Can I include inactive GameObjects when inspecting a Unity scene hierarchy?

Yes, you can include inactive GameObjects when inspecting a Unity scene hierarchy by enabling the inclusion parameter. This allows you to audit the entire scene structure, including disabled objects, for comprehensive debugging and automated testing.

How do I list components on GameObjects in a Unity scene hierarchy?

To list components on GameObjects in a Unity scene hierarchy, this skill provides an option to include component lists per GameObject or use a component lookup table. This returns condensed component information alongside the JSON-formatted hierarchical output.

How do I limit the traversal depth of a Unity scene hierarchy export?

You can limit the traversal depth of a Unity scene hierarchy export by specifying a max depth parameter. This focuses the generated JSON output on relevant subsets of the scene, preventing deep nested structures from cluttering the inspection.

What is the best way to audit UI element nesting in a complex Unity scene?

The best way to audit UI element nesting in a complex Unity scene is to use a hierarchical export tool that returns a structured JSON tree. This skill allows you to specify a root path and include full paths to focus on relevant UI subsets.

Do I need any dependencies to use a CLI tool for Unity scene inspection?

No, you do not need any dependencies to use this CLI tool for Unity scene inspection. It operates standalone to enumerate components and parent-child relationships, returning JSON-formatted hierarchical output without requiring additional packages.