Skip to content
FunCoding

uloop-find-game-objects

Find or inspect Unity GameObjects, especially objects the user currently selected in the Hierarchy. Use for details, components, tags, layers, or name/path searches.

Star
606
License
MIT
Last commit
Nov 29, 2026

Packages/src/Editor/FirstPartyTools/FindGameObjects/Skill/SKILL.md

View on GitHub

uloop find-game-objects

Find GameObjects with search criteria or get details for currently selected Hierarchy objects.

Use this before execute-dynamic-code when identifying or inspecting selected GameObjects. Use get-hierarchy instead when you need the child tree, parent-child structure, or descendants under the selection.

Usage

uloop find-game-objects [options]

Parameters

ParameterTypeDefaultDescription
--name-patternstring-Name pattern to search
--search-modestringexactSearch mode: exact, path, regex, contains, selected
--required-componentsarray-Required components
--tagstring-Tag filter
--layerinteger-Layer filter (layer number)
--max-countinteger20Maximum number of results
--include-inactiveflag-Include inactive GameObjects
--include-inherited-propertiesflag-Include inherited properties in results

Search Modes

ModeDescription
exactExact name match (default). Trap: --name-pattern "Camera" will not match a GameObject named "Main Camera" — use contains or regex for partial matching. A zero-hit exact search returns a Message hint pointing this out.
pathHierarchy path search (e.g., Canvas/Button)
regexRegular expression pattern
containsPartial name match
selectedGet currently selected GameObjects in Unity Editor

Output

Returns JSON with:

  • Results (array): Matching GameObjects, each containing:
    • Name (string): GameObject name
    • Path (string): Hierarchy path (e.g., Canvas/Panel/Button)
    • IsActive (boolean): Active state in hierarchy
    • Tag (string): GameObject tag
    • Layer (number): Layer index
    • Components (array): Each entry has Type (short name, e.g., Rigidbody), FullTypeName (e.g., UnityEngine.Rigidbody), and Properties (array of Inspector-visible {Name, Type, Value} pairs)
  • TotalFound (number): Results returned (after --max-count clipping). For multi-selection file export, this is the number exported.
  • ErrorMessage (string): Top-level failure summary (empty on success)
  • ProcessingErrors (array): Selected-mode per-GameObject serialization failures, each {GameObjectName, GameObjectPath, Error}. Omitted/null or empty on clean runs.

Multi-selection file export

For selected mode with multiple successfully serialized GameObjects, inline Results is not populated and the data is written to a file instead. Two extra fields appear:

  • ResultsFilePath (string): Relative path under .uloop/outputs/FindGameObjectsResults/
  • Message (string): Human-readable summary (e.g., "5 GameObjects exported")

Single-selection and search-mode calls (exact, path, regex, contains) always return inline. No selection (selected mode with empty selection) returns empty Results plus a Message.

Similar Skills

prototype

MAmattpocock/skills336k5,004 new stars in the last 7 days

angular-developer

AFaffaan-m/ECC314k4,125 new stars in the last 7 days

Official

firecrawl-build-scrape

FIfirecrawl/firecrawl214k5,821 new stars in the last 7 days

Official

brand-guidelines

ANanthropics/skills203k3,333 new stars in the last 7 days

Featured

frontend-design

Set visual direction and typography for UI, avoiding templated defaults.

ANanthropics/skills203k3,333 new stars in the last 7 days

Featured

web-artifacts-builder

Build complex HTML artifacts with React, Tailwind CSS, state management and routing.

ANanthropics/skills203k3,333 new stars in the last 7 days