docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class FileRegistry

    Use to contain files created during a build.

    Inheritance
    object
    FileRegistry
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.AddressableAssets.Build
    Assembly: Unity.Addressables.Editor.dll
    Syntax
    public class FileRegistry

    Constructors

    Name Description
    FileRegistry()

    Initializes a new file registry instance.

    Methods

    Name Description
    AddFile(string)

    Adds a file path to our set of file paths.

    GetFilePathForBundle(string)

    Given a bundle name, determine the file path for the bundle.

    GetFilePaths()

    Retrieves all the stored file paths.

    RemoveFile(string)

    Removes a file path from our set of file paths.

    ReplaceBundleEntry(string, string)

    Replace an entry in the File Registry with a new bundle name.

    WriteAndAddFile(string, byte[])

    Writes binary content to path on disk and registers the path with this registry. Creates any intermediate directories as needed.

    WriteAndAddFile(string, string)

    Writes text content to path on disk and registers the path with this registry. Creates any intermediate directories as needed.

    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)