1234567891011121314151617181920 |
- using System; //Action
- using UnityEditor.PackageManager.Requests; //ListRequest, AddRequest, etc
- using UnityEditor.PackageManager; //PackageInfo
- namespace Unity.RenderStreaming.Editor {
- class AddRequestInfo {
- internal string PackageName;
- internal Action<Request<PackageInfo>> OnSuccessAction;
- internal Action<Request<PackageInfo>> OnFailAction;
- internal AddRequestInfo(string packageName,
- Action<Request<PackageInfo>> onSuccess, Action<Request<PackageInfo>> onFail)
- {
- PackageName = packageName;
- OnSuccessAction = onSuccess;
- OnFailAction = onFail;
- }
- }
- } //namespace Unity.RenderStreaming.Editor
|