Method CreateSearchRequest
CreateSearchRequest(string, bool, Action<Request<PackageInfo[]>>, Action<Request<PackageInfo[]>>)
Queue a job to searches the Unity package registry for the given package.
Declaration
public static void CreateSearchRequest(string packageName, bool offlineMode, Action<Request<PackageInfo[]>> onSuccess, Action<Request<PackageInfo[]>> onFail)
Parameters
| Type | Name | Description |
|---|---|---|
| string | packageName | The name or ID of the package to add. |
| bool | offlineMode | Specifies whether or not the Package Manager requests the latest information about the project's packages from the remote Unity package registry. When offlineMode is true, the PackageInfo objects in the PackageCollection returned by the Package Manager contain information obtained from the local package cache, which could be out of date. |
| Action<Request<PackageInfo[]>> | onSuccess | Action which is executed if the request succeeded |
| Action<Request<PackageInfo[]>> | onFail | Action which is executed if the request failed |