We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

Search Results for

    Show / Hide Table of Contents

    Class FileUtilities

    A set of utilities for working with files.

    Inheritance
    Object
    FileUtilities
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.Utilities.Editor
    Assembly: cs.temp.dll.dll
    Syntax
    public static class FileUtilities

    Methods

    FindFilesInAssets(String)

    Locates the files that match the specified name within the Assets folder structure.

    Declaration
    public static FileInfo[] FindFilesInAssets(string fileName)
    Parameters
    Type Name Description
    String fileName

    The name of the file to locate (ex: "TestFile.asmdef")

    Returns
    Type Description
    FileInfo[]

    Array of FileInfo objects representing the located file(s).

    FindFilesInPackageCache(String)

    Locates the files that match the specified name within the package cache folder structure.

    Declaration
    public static FileInfo[] FindFilesInPackageCache(string fileName)
    Parameters
    Type Name Description
    String fileName

    The name of the file to locate (ex: "TestFile.asmdef")

    Returns
    Type Description
    FileInfo[]

    Array of FileInfo objects representing the located file(s).

    GetPackageCache()

    Gets the package cache folder of this project.

    Declaration
    public static DirectoryInfo GetPackageCache()
    Returns
    Type Description
    DirectoryInfo

    A DirectoryInfo object that describes the package cache folder.

    In This Article
    Back to top Generated by DocFX