uloop-unity-search
uloop unity-search
Search Unity project using Unity Search.
Usage
uloop unity-search [options]
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
--search-query |
string | - | Search query (supports Unity Search syntax) |
--providers |
array | - | Search providers (e.g., asset, scene, menu, settings, packages) |
--max-results |
integer | 50 |
Maximum number of results |
--include-description |
boolean | true |
Include detailed descriptions in results |
--include-metadata |
boolean | false |
Include file metadata (size, modified date) |
--search-flags |
enum | Default |
Search flags: Default, Synchronous, WantsMore, Packages, Sorted |
--save-to-file |
boolean | false |
Save results to file |
--output-format |
enum | JSON |
Output format when saving to file: JSON, CSV, TSV |
--auto-save-threshold |
integer | 100 |
Auto-save to file when results exceed this count (0 to disable) |
--file-extensions |
array | - | Filter by file extension (e.g., cs, prefab, mat) |
--asset-types |
array | - | Filter by asset type (e.g., Texture2D, GameObject, MonoScript) |
--path-filter |
string | - | Filter by path pattern (supports wildcards) |
Global Options
| Option | Description |
|---|---|
--project-path <path> |
Target a specific Unity project (mutually exclusive with --port) |
-p, --port <port> |
Specify Unity TCP port directly (mutually exclusive with --project-path) |
Examples
# Search for assets
uloop unity-search --search-query "Player"
# Search with specific provider
uloop unity-search --search-query "t:Prefab" --providers asset
# Limit results
uloop unity-search --search-query "*.cs" --max-results 20
Output
Returns JSON array of search results with paths and metadata.
Notes
Use uloop get-unity-search-providers to discover available search providers.
More from hatayama/uloopmcp
uloop-screenshot
Capture screenshots of Unity Editor windows as PNG files. Use when you need to: (1) Screenshot Game View, Scene View, Console, Inspector, or other windows, (2) Capture current visual state for debugging or documentation, (3) Save editor window appearance as image files.
38uloop-find-game-objects
Use first when the user asks about the currently selected GameObject in the Unity Hierarchy. Inspect selected object details with `--search-mode Selected` before using `execute-dynamic-code`. Use when you need to: (1) Get details and component properties for selected GameObject(s), (2) Search for objects by name, regex, or path, (3) Find objects with specific components, tags, or layers. Use get-hierarchy when the child tree under the selection is needed. Returns hierarchy paths, active state, tags, layers, and components (or writes to a file when multiple GameObjects are selected).
37uloop-clear-console
Clear all Unity Console log entries. Use when you need to: (1) Clear console before running tests or compilation, (2) Start a fresh debugging session, (3) Remove noisy logs to isolate specific output.
36uloop-run-tests
Execute Unity Test Runner and get detailed results. Use when you need to: (1) Run EditMode or PlayMode unit tests, (2) Verify code changes pass all tests, (3) Diagnose test failures with error messages and stack traces. Single-flight only — never run multiple `uloop run-tests` in parallel.
35uloop-launch
Launch Unity project with matching Editor version via uloop CLI. Use when you need to: (1) Open a Unity project with the correct Editor version, (2) Restart Unity to apply changes, (3) Switch build target when launching.
35uloop-compile
Compile Unity project and report errors/warnings. Use when you need to: (1) Verify code compiles after C# file edits, (2) Check for compile errors before testing, (3) Force full recompilation with Domain Reload. Returns error and warning counts.
34