uloop-find-game-objects

📁 hatayama/uloopmcp 📅 14 days ago
21
总安装量
20
周安装量
#17114
全站排名
安装命令
npx skills add https://github.com/hatayama/uloopmcp --skill uloop-find-game-objects

Agent 安装分布

codex 20
amp 19
gemini-cli 19
github-copilot 19
kimi-cli 19
opencode 19

Skill 文档

uloop find-game-objects

Find GameObjects with search criteria or get currently selected objects.

Usage

uloop find-game-objects [options]

Parameters

Parameter Type Default Description
--name-pattern string Name pattern to search
--search-mode string Contains Search mode: Exact, Path, Regex, Contains, Selected
--required-components array Required components
--tag string Tag filter
--layer string Layer filter
--max-results integer 20 Maximum number of results
--include-inactive boolean false Include inactive GameObjects

Search Modes

Mode Description
Exact Exact name match
Path Hierarchy path search (e.g., Canvas/Button)
Regex Regular expression pattern
Contains Partial name match (default)
Selected Get currently selected GameObjects in Unity Editor

Global Options

Option Description
--project-path <path> Target a specific Unity project (mutually exclusive with --port). Path resolution follows the same rules as cd — absolute paths are used as-is, relative paths are resolved from cwd.
-p, --port <port> Specify Unity TCP port directly (mutually exclusive with --project-path).

Examples

# Find by name
uloop find-game-objects --name-pattern "Player"

# Find with component
uloop find-game-objects --required-components Rigidbody

# Find by tag
uloop find-game-objects --tag "Enemy"

# Regex search
uloop find-game-objects --name-pattern "UI_.*" --search-mode Regex

# Get selected GameObjects
uloop find-game-objects --search-mode Selected

# Get selected including inactive
uloop find-game-objects --search-mode Selected --include-inactive

Output

Returns JSON with matching GameObjects.

For Selected mode with multiple objects, results are exported to file:

  • Single selection: JSON response directly
  • Multiple selection: File at .uloop/outputs/FindGameObjectsResults/
  • No selection: Empty results with message