AddRequestInfo.cs 697 B

1234567891011121314151617181920
  1. using System; //Action
  2. using UnityEditor.PackageManager.Requests; //ListRequest, AddRequest, etc
  3. using UnityEditor.PackageManager; //PackageInfo
  4. namespace Unity.RenderStreaming.Editor {
  5. class AddRequestInfo {
  6. internal string PackageName;
  7. internal Action<Request<PackageInfo>> OnSuccessAction;
  8. internal Action<Request<PackageInfo>> OnFailAction;
  9. internal AddRequestInfo(string packageName,
  10. Action<Request<PackageInfo>> onSuccess, Action<Request<PackageInfo>> onFail)
  11. {
  12. PackageName = packageName;
  13. OnSuccessAction = onSuccess;
  14. OnFailAction = onFail;
  15. }
  16. }
  17. } //namespace Unity.RenderStreaming.Editor