Class RequestExtensions
An extension class to extend the functionalities of UnityEditor.PackageManager.Requests classes
Namespace: Unity.RenderStreaming.Editor
Syntax
public static class RequestExtensions
Methods
FindPackage(Request<PackageCollection>, String)
Find a PackageInfo which has the passed parameter
Declaration
public static PackageInfo FindPackage(this Request<PackageCollection> listRequest, string packageName)
Parameters
| Type | Name | Description |
|---|---|---|
| Request<PackageCollection> | listRequest | list of Request object |
| String | packageName | the package name |
Returns
| Type | Description |
|---|---|
| PackageInfo | The PackageInfo if found, otherwise null |