AddAndRemoveRequest
Represents an asynchronous request to add package dependencies to the project and/or remove package dependencies from the project.
Read time 1 minuteLast updated 20 days ago
Definition
- Type: Class
- Namespace: UnityEditor.PackageManager.Requests
- Assembly: UnityEditor
- Inherits from: Request<PackageCollection>
- Implements: ISerializationCallbackReceiver
public sealed class AddAndRemoveRequest : Request<PackageCollection>, ISerializationCallbackReceiver
Remarks
The PackageManager Client class returns an AddAndRemoveRequest instance when you call the Client.AddAndRemove method to add package dependencies to the project and/or remove package dependencies from the 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 PackageCollection instance from the Result property.