Unity - Scripting API: Request
class in UnityEditor.PackageManager.Requests
Implements interfaces:ISerializationCallbackReceiver
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
Base class for all Package Manager asynchronous operations. Use this class to track the status and results of package operations, such as adding, removing, or updating packages.
- All Client (such as Client.Add, Client.Remove, and Client.List) return an object derived from the Request class.
- Check the
IsCompletedproperty to know when the operation is done. - Always check the
Statusproperty of theRequestfor a StatusCode ofSuccessbefore accessing results to make sure the operation was successful.
Properties
| Property | Description |
|---|---|
| Error | The error returned by the request, if any. |
| IsCompleted | Whether the request is complete. |
| Status | The request status. |