SearchRequestInfo.cs 778 B

1234567891011121314151617181920212223
  1. using System; //Action
  2. using UnityEditor.PackageManager.Requests; //Request<T>
  3. using UnityEditor.PackageManager; //PackageInfo
  4. namespace Unity.RenderStreaming.Editor {
  5. class SearchRequestInfo {
  6. internal string PackageName;
  7. internal bool OfflineMode;
  8. internal Action<Request<PackageInfo[]>> OnSuccessAction;
  9. internal Action<Request<PackageInfo[]>> OnFailAction;
  10. internal SearchRequestInfo(string packageName, bool offlineMode,
  11. Action<Request<PackageInfo[]>> onSuccess, Action<Request<PackageInfo[]>> onFail)
  12. {
  13. PackageName = packageName;
  14. OfflineMode = offlineMode;
  15. OnSuccessAction = onSuccess;
  16. OnFailAction = onFail;
  17. }
  18. }
  19. } //namespace Unity.RenderStreaming.Editor