SearchAllRequestInfo.cs 697 B

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