Class Utilities
Assembly: Unity.PackageValidationSuite.Editor.dll
Syntax
public static class Utilities
Fields
UnityTempPath
Declaration
public const string UnityTempPath = "Temp"
Field Value
Properties
NetworkNotReachable
Declaration
public static bool NetworkNotReachable { get; }
Property Value
Methods
AssembliesForPackage(string)
Returns the Assembly instances which contain one or more scripts in a package, given the list of files in the package.
Declaration
public static IEnumerable<Assembly> AssembliesForPackage(string packageRootPath)
Parameters
Type |
Name |
Description |
string |
packageRootPath |
|
Returns
CreatePackageId(string, string)
Declaration
public static string CreatePackageId(string name, string version)
Parameters
Returns
CreateTempFile(string)
Declaration
public static string CreateTempFile(string contents)
Parameters
Type |
Name |
Description |
string |
contents |
|
Returns
Declaration
public static string ExtractPackage(string fullPackagePath, string workingPath, string outputDirectory, string packageName, bool deleteOutputDir = true)
Parameters
Returns
GetMonoPath()
Declaration
public static string GetMonoPath()
Returns
GetOSAgnosticPath(string)
Declaration
public static string GetOSAgnosticPath(string filePath)
Parameters
Type |
Name |
Description |
string |
filePath |
|
Returns
GetPackageVersionsOnProduction(string)
Declaration
public static List<string> GetPackageVersionsOnProduction(string packageName)
Parameters
Type |
Name |
Description |
string |
packageName |
|
Returns
GetPathFromRoot(string, string)
Declaration
public static string GetPathFromRoot(string filePath, string root)
Parameters
Returns
IsPreviewVersion(string)
Declaration
public static bool IsPreviewVersion(string version)
Parameters
Type |
Name |
Description |
string |
version |
|
Returns
IsTestAssembly(Assembly)
Declaration
public static bool IsTestAssembly(Assembly assembly)
Parameters
Returns