Class PackageInfoCollectionExtension
Namespace: Unity.AnimeToolbox.Editor
Syntax
public static class PackageInfoCollectionExtension
Methods
FindPackage(ReadOnlyCollection<PackageInfo>, String)
Find a package inside a collection of PackageInfo
Declaration
public static PackageInfo FindPackage(this ReadOnlyCollection<PackageInfo> packageInfoCollection, string packageName)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlyCollection<PackageInfo> | packageInfoCollection | The package collection |
String | packageName | The name of the package to be searched |
Returns
Type | Description |
---|---|
PackageInfo | The PackageInfo of the package if found, null otherwise. |
JoinToString(ReadOnlyCollection<PackageInfo>)
Creates a multi-line description of the packages in the collection.
Declaration
public static string JoinToString(this ReadOnlyCollection<PackageInfo> packageInfoCollection)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlyCollection<PackageInfo> | packageInfoCollection | The package collection |
Returns
Type | Description |
---|---|
String | Example: com.unity.foo@0.1.0-preview com.unity.bar@0.3.0-preview |