Method CreateListRequest
CreateListRequest(bool, bool, Action<Request<PackageCollection>>, Action<Request<PackageCollection>>)
Queue a job to list the packages the project depends on.
Declaration
public static void CreateListRequest(bool offlineMode, bool includeIndirectIndependencies, Action<Request<PackageCollection>> onSuccess, Action<Request<PackageCollection>> onFail)
Parameters
| Type | Name | Description |
|---|---|---|
| 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. |
| bool | includeIndirectIndependencies | Set to true to include indirect dependencies in the PackageCollection returned by the Package Manager. Indirect dependencies include packages referenced in the manifests of project packages or in the manifests of other indirect dependencies. Set to false to include only the packages listed directly in the project manifest. |
| Action<Request<PackageCollection>> | onSuccess | Action which is executed if the request succeeded |
| Action<Request<PackageCollection>> | onFail | Action which is executed if the request failed |