docs.unity.cn
    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
    Boolean

    True if the data was loaded successfully.

    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