uloop-get-hierarchy
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chineseuloop get-hierarchy
uloop get-hierarchy
Get Unity Hierarchy structure.
获取Unity Hierarchy结构。
Usage
Usage
bash
uloop get-hierarchy [options]bash
uloop get-hierarchy [options]Parameters
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| string | - | Root GameObject path to start from |
| integer | | Maximum depth (-1 for unlimited) |
| boolean | | Include component information |
| boolean | | Include inactive GameObjects |
| boolean | | Include full path information |
| boolean | | Use selected GameObject(s) as root(s). When true, |
| 参数 | 类型 | 默认值 | 描述 |
|---|---|---|---|
| string | - | 起始的根GameObject路径 |
| integer | | 最大深度(-1表示无限制) |
| boolean | | 包含组件信息 |
| boolean | | 包含非激活状态的GameObject |
| boolean | | 包含完整路径信息 |
| boolean | | 使用选中的GameObject作为根节点。启用此选项时, |
Global Options
Global Options
| Option | Description |
|---|---|
| Target a specific Unity project (mutually exclusive with |
| Specify Unity TCP port directly (mutually exclusive with |
| 选项 | 描述 |
|---|---|
| 指定目标Unity项目(与 |
| 直接指定Unity TCP端口(与 |
Examples
Examples
bash
undefinedbash
undefinedGet entire hierarchy
获取完整层级结构
uloop get-hierarchy
uloop get-hierarchy
Get hierarchy from specific root
获取指定根节点下的层级结构
uloop get-hierarchy --root-path "Canvas/UI"
uloop get-hierarchy --root-path "Canvas/UI"
Limit depth
限制层级深度
uloop get-hierarchy --max-depth 2
uloop get-hierarchy --max-depth 2
Without components
不包含组件信息
uloop get-hierarchy --include-components false
uloop get-hierarchy --include-components false
Get hierarchy from currently selected GameObjects
获取当前选中GameObject的层级结构
uloop get-hierarchy --use-selection
undefineduloop get-hierarchy --use-selection
undefinedOutput
Output
Returns JSON with hierarchical structure of GameObjects and their components.
返回包含GameObject及其组件层级结构的JSON数据。