Unity - Scripting API: AddAndRemoveRequest
class in UnityEditor.PackageManager.Requests
/
Inherits from:PackageManager.Requests.Request_1
Success!
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.
Submission failed
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.
Description
Represents an asynchronous request to add package dependencies to the project, remove package dependencies from the project, or both.
The PackageManager Client class returns an AddAndRemoveRequest instance when you call the Client.AddAndRemove method to add or remove package dependencies in the project. Use this object to determine when the request is complete and to access the result.
After the request completes, you can retrieve the PackageCollection instance from the Result property.
Inherited Members
Properties
| Property | Description |
|---|---|
| Error | The error returned by the request, if any. |
| IsCompleted | Whether the request is complete. |
| Status | The request status. |
| Result | A property that provides access to the result of a completed Package Manager request operation. |