uloop-execute-menu-item

hatayama's avatarfrom hatayama

Execute Unity MenuItem via uloop CLI. Use when you need to: (1) Trigger menu commands programmatically, (2) Automate editor actions (save, build, refresh), (3) Run custom menu items defined in scripts.

⭐105stars🔀8forks📁View on GitHub🕐Updated Jan 3, 2026

When & Why to Use This Skill

The uloop-execute-menu-item skill enables seamless automation within the Unity Editor by allowing users to programmatically trigger any MenuItem command via the uloop CLI. It significantly enhances game development productivity by bridging the gap between external automation scripts and internal Unity editor functions, allowing for hands-free execution of complex editor tasks.

Use Cases

  • Automated Build and Deployment: Integrate Unity build commands into CI/CD pipelines by triggering 'Build' menu items programmatically.
  • Editor Workflow Optimization: Automate repetitive manual tasks such as saving scenes, refreshing asset databases, or clearing consoles through simple CLI commands.
  • Custom Tool Integration: Execute proprietary menu items defined in custom C# scripts to perform batch processing, data validation, or scene setup without manual UI interaction.
  • Remote Project Management: Allow AI agents to manipulate the Unity Editor state, such as opening specific project settings or creating game objects, based on natural language instructions.
nameuloop-execute-menu-item
description"Execute Unity MenuItem via uloop CLI. Use when you need to: (1) Trigger menu commands programmatically, (2) Automate editor actions (save, build, refresh), (3) Run custom menu items defined in scripts."

uloop execute-menu-item

Execute Unity MenuItem.

Usage

uloop execute-menu-item --menu-item-path "<path>"

Parameters

Parameter Type Default Description
--menu-item-path string - Menu item path (e.g., "GameObject/Create Empty")
--use-reflection-fallback boolean true Use reflection fallback

Examples

# Create empty GameObject
uloop execute-menu-item --menu-item-path "GameObject/Create Empty"

# Save scene
uloop execute-menu-item --menu-item-path "File/Save"

# Open project settings
uloop execute-menu-item --menu-item-path "Edit/Project Settings..."

Output

Returns JSON with execution result.

Notes

  • Use uloop get-menu-items to discover available menu paths
  • Some menu items may require specific context or selection