AddRequest
Represents an asynchronous request to add a package to the project.
Read time 1 minuteLast updated 19 days ago
Definition
- Type: Class
- Namespace: UnityEditor.PackageManager.Requests
- Assembly: UnityEditor
- Inherits from: Request<PackageInfo>
- Implements: ISerializationCallbackReceiver
public sealed class AddRequest : Request<PackageInfo>, ISerializationCallbackReceiver
Remarks
The PackageManager Client class returns an AddRequest instance when you call the Client.Add method to add a package to your project. Use this object to determine when the request is complete and to access the result.
Once the request is complete, you can retrieve the PackageInfo instance from the Result property.