uloop-execute-menu-item

Execute Unity Editor menu commands via MenuItem paths with reflection fallback.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill lets you programmatically invoke Unity Editor menu commands so you can automate repetitive editor actions, trigger project-defined menu items, and integrate editor operations into CLI-driven workflows.

Core Features & Use Cases

  • Invoke Menu Paths: Execute built-in and custom MenuItem paths such as creating objects, saving scenes, or opening settings.
  • Reflection Fallback: Use an optional reflection-based fallback when direct MenuItem invocation requires context or selector workarounds.
  • Project Targeting & Output: Accepts a project path override and returns JSON-formatted execution results for integration into scripts and CI flows.

Quick Start

Execute the Unity menu item "GameObject/Create Empty" in the current project by running the uloop execute-menu-item command with the appropriate --menu-item-path.

Frequently Asked Questions about uloop-execute-menu-item

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

FAQPage Schema
How do I automate Unity Editor menu commands from the command line?

Executing Unity Editor menu commands from the CLI involves invoking specific MenuItem paths programmatically to trigger built-in or custom editor actions like saving scenes without opening the GUI.

Can I trigger custom MenuItem paths in a Unity project via CLI?

Yes, triggering custom MenuItem paths in a Unity project via CLI is supported. The execution tool accepts a menu item path parameter to invoke project-defined commands alongside built-in editor workflows.

What should I do if a Unity MenuItem invocation fails due to missing context?

If a Unity MenuItem invocation fails due to missing context, use an optional reflection-based fallback. This mechanism bypasses direct invocation issues by finding and executing the underlying method directly.

Does Unity editor automation support targeting a specific project path?

Yes, Unity editor automation supports targeting a specific project path. You can provide a project path override to ensure menu commands execute within the correct Unity project directory.

How do I integrate Unity scene saving or building into a CI pipeline?

Integrate Unity scene saving or building into a CI pipeline by executing the relevant MenuItem paths via CLI. The tool returns JSON-formatted execution results for easy parsing in automated workflows.