首页/ AI 技能 / @skilllib/skill-2117939930272417889
Skill站外收录 @skilllib/skill-2117939930272417889

uloop-get-hierarchy

获取 Unity 场景中 GameObject 的树状层级结构,支持从指定节点开始遍历、限制深度、包含或排除非激活对象及组件信息,输出结构化 JSON 数据,便于分析场景构成与对象关系。

0.0 (0) 32 次安装 原作者 编程导航
收录于 2026-01-22
软件开发 AI 技能

Skills.MD

# uloop get-hierarchy Get Unity Hierarchy structure. ## Usage ```bash uloop get-hierarchy [options] ``` ## Parameters | Parameter | Type | Default | Description | |-----------|------|---------|-------------| | `--root-path` | string | - | Root GameObject path to start from | | `--max-depth` | integer | `-1` | Maximum depth (-1 for unlimited) | | `--include-components` | boolean | `true` | Include component information | | `--include-inactive` | boolean | `true` | Include inactive GameObjects | | `--include-paths` | boolean | `false` | Include full path information | ## Examples ```bash # Get entire hierarchy uloop get-hierarchy # Get hierarchy from specific root uloop get-hierarchy --root-path "Canvas/UI" # Limit depth uloop get-hierarchy --max-depth 2 # Without components uloop get-hierarchy --include-components false ``` ## Output Returns JSON with hierarchical structure of GameObjects and their components.

评论 0

还没有评论,来抢沙发。