Files
webRtc/Packages/com.unity.renderstreaming@3.1.0-exp.9/Editor/RequestInfo/AddRequestInfo.cs

23 lines
746 B
C#
Raw Normal View History

2026-04-28 16:48:04 +08:00
using System; //Action
using UnityEditor.PackageManager; //PackageInfo
using UnityEditor.PackageManager.Requests; //ListRequest, AddRequest, etc
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