uloop-unity-search

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

uloop unity-search

uloop unity-search

Search Unity project using Unity Search.
使用Unity Search搜索Unity项目。

Usage

使用方法

bash
uloop unity-search [options]
bash
uloop unity-search [options]

Parameters

参数

ParameterTypeDefaultDescription
--search-query
string-Search query
--providers
array-Search providers (e.g.,
asset
,
scene
,
find
)
--max-results
integer
50
Maximum number of results
--save-to-file
boolean
false
Save results to file
参数类型默认值描述
--search-query
字符串-搜索关键词
--providers
数组-搜索提供程序(例如
asset
scene
find
--max-results
整数
50
最大结果数量
--save-to-file
布尔值
false
将结果保存到文件

Global Options

全局选项

OptionDescription
--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
).
选项描述
--project-path <path>
指定目标Unity项目(与
--port
互斥)。路径解析遵循与
cd
相同的规则——绝对路径直接使用,相对路径从当前工作目录解析。
-p, --port <port>
直接指定Unity TCP端口(与
--project-path
互斥)。

Examples

示例

bash
undefined
bash
undefined

Search for assets

搜索资源

uloop unity-search --search-query "Player"
uloop unity-search --search-query "Player"

Search with specific provider

使用指定提供程序搜索

uloop unity-search --search-query "t:Prefab" --providers asset
uloop unity-search --search-query "t:Prefab" --providers asset

Limit results

限制结果数量

uloop unity-search --search-query "*.cs" --max-results 20
undefined
uloop unity-search --search-query "*.cs" --max-results 20
undefined

Output

输出

Returns JSON array of search results with paths and metadata.
返回包含路径和元数据的搜索结果JSON数组。

Notes

注意事项

Use
uloop get-provider-details
to discover available search providers.
使用
uloop get-provider-details
查看可用的搜索提供程序。