docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class FileUtils

    File system helpers for synchronous and coroutine-based IO.

    Inheritance
    object
    FileUtils
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: AutoGroupGenerator
    Assembly: Unity.AutoGroupGenerator.Editor.dll
    Syntax
    public static class FileUtils

    Methods

    Name Description
    EnsureDirectoryExist(string)

    Ensures the directory for the specified file path exists.

    LoadFromFile(string)

    Loads all text from a file.

    LoadFromFileAsync<T>(string, Action<T>, int)

    Loads JSON data from a file asynchronously as a coroutine.

    SaveToFile(string, string)

    Saves text to a file, creating directories as needed.

    SaveToFileAsync(string, string, Action<bool>, int)

    Saves text to a file asynchronously as a coroutine.

    In This Article
    Back to top
    Copyright © 2026 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)