docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Utilities

    Inheritance
    object
    Utilities
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.PackageManager.ValidationSuite
    Assembly: Unity.PackageValidationSuite.Editor.dll
    Syntax
    public static class Utilities

    Fields

    UnityTempPath

    Declaration
    public const string UnityTempPath = "Temp"
    Field Value
    Type Description
    string

    Properties

    NetworkNotReachable

    Declaration
    public static bool NetworkNotReachable { get; }
    Property Value
    Type Description
    bool

    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
    Type Description
    IEnumerable<Assembly>

    CreatePackageId(string, string)

    Declaration
    public static string CreatePackageId(string name, string version)
    Parameters
    Type Name Description
    string name
    string version
    Returns
    Type Description
    string

    CreateTempFile(string)

    Declaration
    public static string CreateTempFile(string contents)
    Parameters
    Type Name Description
    string contents
    Returns
    Type Description
    string

    ExtractPackage(string, string, string, string, bool)

    Declaration
    public static string ExtractPackage(string fullPackagePath, string workingPath, string outputDirectory, string packageName, bool deleteOutputDir = true)
    Parameters
    Type Name Description
    string fullPackagePath
    string workingPath
    string outputDirectory
    string packageName
    bool deleteOutputDir
    Returns
    Type Description
    string

    GetMonoPath()

    Declaration
    public static string GetMonoPath()
    Returns
    Type Description
    string

    GetOSAgnosticPath(string)

    Declaration
    public static string GetOSAgnosticPath(string filePath)
    Parameters
    Type Name Description
    string filePath
    Returns
    Type Description
    string

    GetPackageVersionsOnProduction(string)

    Declaration
    public static List<string> GetPackageVersionsOnProduction(string packageName)
    Parameters
    Type Name Description
    string packageName
    Returns
    Type Description
    List<string>

    GetPathFromRoot(string, string)

    Declaration
    public static string GetPathFromRoot(string filePath, string root)
    Parameters
    Type Name Description
    string filePath
    string root
    Returns
    Type Description
    string

    IsPreviewVersion(string)

    Declaration
    public static bool IsPreviewVersion(string version)
    Parameters
    Type Name Description
    string version
    Returns
    Type Description
    bool

    IsTestAssembly(Assembly)

    Declaration
    public static bool IsTestAssembly(Assembly assembly)
    Parameters
    Type Name Description
    Assembly assembly
    Returns
    Type Description
    bool
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)