Version: 2023.2

SearchRequest

class in UnityEditor.PackageManager.Requests

/

继承自:PackageManager.Requests.Request_1

切换到手册

描述

表示关于查找包的异步请求。

The PackageManager Client class returns a SearchRequest instance when you call the Client.Search method to find a package or the Client.SearchAll method to find all discoverable packages. Use this object to determine when the request is complete and to access the result.

Once the request is complete, you can retrieve the array of PackageInfo instances from the Result property.

变量

PackageIdOrName此搜索操作中使用的包 ID 或名称。

继承的成员

变量

Error请求返回的错误(如果有)。
IsCompleted请求是否已完成。
Status请求状态。
Result对请求的响应。