Class FileRegistry | Addressables | 1.13.1
docs.unity3d.com
    Show / Hide Table of Contents

    Class FileRegistry

    Inheritance
    Object
    FileRegistry
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEditor.AddressableAssets.Build
    Syntax
    public class FileRegistry

    Constructors

    FileRegistry()

    Declaration
    public FileRegistry()

    Methods

    AddFile(String)

    Declaration
    public void AddFile(string path)
    Parameters
    Type Name Description
    String path

    GetFilePathForBundle(String)

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

    Declaration
    public string GetFilePathForBundle(string bundleName)
    Parameters
    Type Name Description
    String bundleName

    The name of the bundle.

    Returns
    Type Description
    String

    The full file path.

    GetFilePaths()

    Declaration
    public IEnumerable<string> GetFilePaths()
    Returns
    Type Description
    IEnumerable<String>

    RemoveFile(String)

    Declaration
    public void RemoveFile(string path)
    Parameters
    Type Name Description
    String path

    ReplaceBundleEntry(String, String)

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

    Declaration
    public bool ReplaceBundleEntry(string bundleName, string newFileRegistryEntry)
    Parameters
    Type Name Description
    String bundleName

    The bundle name to replace.

    String newFileRegistryEntry

    The new file registry bundle name.

    Returns
    Type Description
    Boolean

    Returns true if a successful replacement occured.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023