uloop-find-game-objects
通过uloop CLI使用搜索条件查找GameObject。当您需要:(1)按名称模式定位GameObject,(2)按标签或层查找对象,(3)搜索具有特定组件类型的对象时使用。
📖 中文导读:通过uloop CLI使用搜索条件查找GameObject。当您需要:(1)按名称模式定位GameObject,(2)按标签或层查找对象,(3)搜索具有特定组件类型的对象时使用。 以下正文为该技能的原始 SKILL.md 内容(英文),上方安装命令可直接使用。
name: uloop-find-game-objects description: "Find specific GameObjects in scene. Use when: searching for objects by name, finding objects with specific components, locating tagged/layered objects, or when user asks to find GameObjects. Returns matching GameObjects with paths and components."
uloop find-game-objects
Find GameObjects with search criteria.
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 |
--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 |
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
Output
Returns JSON array of matching GameObjects with paths and components.