AgentSkillsCN

uloop-get-menu-items

通过 uloop CLI 获取 Unity 菜单项。适用于以下场景:(1)发现 Unity 编辑器中的可用菜单命令;(2)寻找用于自动化的菜单路径;(3)为编程方式执行菜单项做准备。

SKILL.md
--- frontmatter
name: uloop-get-menu-items
description: Retrieve Unity MenuItems via uloop CLI. Use when you need to: (1) Discover available menu commands in Unity Editor, (2) Find menu paths for automation, (3) Prepare for executing menu items programmatically.

uloop get-menu-items

Retrieve Unity MenuItems.

Usage

bash
uloop get-menu-items [options]

Parameters

ParameterTypeDefaultDescription
--filter-textstring-Filter text
--filter-typestringcontainsFilter type: contains, exact, startswith
--max-countinteger200Maximum number of items
--include-validationbooleanfalseInclude validation functions

Examples

bash
# List all menu items
uloop get-menu-items

# Filter by text
uloop get-menu-items --filter-text "GameObject"

# Exact match
uloop get-menu-items --filter-text "File/Save" --filter-type exact

Output

Returns JSON array of menu items with paths and metadata.

Notes

Use with uloop execute-menu-item to run discovered menu commands.