docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method LoadLocalCatalogData

    LoadLocalCatalogData(string, Func<string, string>, Func<string, string>)

    Loads catalog data from a local path.

    Declaration
    [ExcludeFromBurstCompatTesting("References managed objects")]
    public static bool LoadLocalCatalogData(string catalogPath, Func<string, string> fileNameFunc, Func<string, string> archivePathFunc)
    Parameters
    Type Name Description
    string catalogPath

    The full path to the catalog file.

    Func<string, string> fileNameFunc

    Functor to transform internal content file names. The string passed in is the file id and the expected returned string is the internal archive file path. (e.g. $"ns:/{k_NameSpaceString}/{ArchivePrefix}/{fileId}")

    Func<string, string> archivePathFunc

    Functor to transform content archive ids to full local paths.

    Returns
    Type Description
    bool

    True if the data was loaded successfully.

    In This Article
    • LoadLocalCatalogData(string, Func<string, string>, Func<string, string>)
    Back to top
    Copyright © 2024 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)