Search Results for

    Show / Hide Table of Contents

    Class FileExtensions

    Inheritance
    object
    FileExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.IO.Files
    Assembly: Glitch9.IO.dll
    Syntax
    public static class FileExtensions

    Methods

    | Edit this page View Source

    GetMetadata<T>(SerializableFileInfo, string)

    Declaration
    public static T GetMetadata<T>(this SerializableFileInfo fileInfo, string key)
    Parameters
    Type Name Description
    SerializableFileInfo fileInfo
    string key
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    GetUnityObjectOrNull<T>(IFile)

    Declaration
    public static T GetUnityObjectOrNull<T>(this IFile file) where T : Object
    Parameters
    Type Name Description
    IFile file
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    IsImage(byte[])

    Declaration
    public static bool IsImage(this byte[] fileBytes)
    Parameters
    Type Name Description
    byte[] fileBytes
    Returns
    Type Description
    bool
    | Edit this page View Source

    SaveTextureToFileAsync(byte[], string, CancellationToken)

    Declaration
    public static UniTask SaveTextureToFileAsync(this byte[] textureAsBytes, string path, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    byte[] textureAsBytes
    string path
    CancellationToken cancellationToken
    Returns
    Type Description
    UniTask
    | Edit this page View Source

    SaveTextureToFileAsync(Texture2D, string, CancellationToken)

    Declaration
    public static UniTask SaveTextureToFileAsync(this Texture2D texture, string path, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    Texture2D texture
    string path
    CancellationToken cancellationToken
    Returns
    Type Description
    UniTask
    | Edit this page View Source

    ToBase64String(IFile)

    Declaration
    public static string ToBase64String(this IFile file)
    Parameters
    Type Name Description
    IFile file
    Returns
    Type Description
    string
    | Edit this page View Source

    ToFile<T>(T, string)

    Declaration
    public static File<T> ToFile<T>(this T unityObject, string fullPath = null) where T : Object
    Parameters
    Type Name Description
    T unityObject
    string fullPath
    Returns
    Type Description
    File<T>
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    ToList<T>(IList<IFile>)

    Declaration
    public static List<File<T>> ToList<T>(this IList<IFile> files) where T : Object
    Parameters
    Type Name Description
    IList<IFile> files
    Returns
    Type Description
    List<File<T>>
    Type Parameters
    Name Description
    T
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation