docs.unity3d.com
    Show / Hide Table of Contents

    Method SaveContentState

    SaveContentState(String, List<AddressableAssetEntry>, IDependencyData, String, String)

    Save the content update information for a set of AddressableAssetEntry objects.

    Declaration
    public static bool SaveContentState(string path, List<AddressableAssetEntry> entries, IDependencyData dependencyData, string playerVersion, string remoteCatalogPath)
    Parameters
    Type Name Description
    String path

    File to write content stat info to. If file already exists, it will be deleted before the new file is created.

    List<AddressableAssetEntry> entries

    The entries to save.

    IDependencyData dependencyData

    The raw dependency information generated from the build.

    String playerVersion

    The player version to save. This is usually set to AddressableAssetSettings.PlayerBuildVersion.

    String remoteCatalogPath

    The server path (if any) that contains an updateable content catalog. If this is empty, updates cannot occur.

    Returns
    Type Description
    Boolean

    True if the file is saved, false otherwise.

    SaveContentState(List<ContentCatalogDataEntry>, String, List<AddressableAssetEntry>, IDependencyData, String, String)

    Save the content update information for a set of AddressableAssetEntry objects.

    Declaration
    public static bool SaveContentState(List<ContentCatalogDataEntry> locations, string path, List<AddressableAssetEntry> entries, IDependencyData dependencyData, string playerVersion, string remoteCatalogPath)
    Parameters
    Type Name Description
    List<ContentCatalogDataEntry> locations

    The ContentCatalogDataEntry locations that were built into the Content Catalog.

    String path

    File to write content stat info to. If file already exists, it will be deleted before the new file is created.

    List<AddressableAssetEntry> entries

    The entries to save.

    IDependencyData dependencyData

    The raw dependency information generated from the build.

    String playerVersion

    The player version to save. This is usually set to AddressableAssetSettings.PlayerBuildVersion.

    String remoteCatalogPath

    The server path (if any) that contains an updateable content catalog. If this is empty, updates cannot occur.

    Returns
    Type Description
    Boolean

    True if the file is saved, false otherwise.

    SaveContentState(List<ContentCatalogDataEntry>, String, List<AddressableAssetEntry>, IDependencyData, String, String, List<CachedAssetState>)

    Save the content update information for a set of AddressableAssetEntry objects.

    Declaration
    public static bool SaveContentState(List<ContentCatalogDataEntry> locations, string path, List<AddressableAssetEntry> entries, IDependencyData dependencyData, string playerVersion, string remoteCatalogPath, List<CachedAssetState> carryOverCacheState)
    Parameters
    Type Name Description
    List<ContentCatalogDataEntry> locations

    The ContentCatalogDataEntry locations that were built into the Content Catalog.

    String path

    File to write content stat info to. If file already exists, it will be deleted before the new file is created.

    List<AddressableAssetEntry> entries

    The entries to save.

    IDependencyData dependencyData

    The raw dependency information generated from the build.

    String playerVersion

    The player version to save. This is usually set to AddressableAssetSettings.PlayerBuildVersion.

    String remoteCatalogPath

    The server path (if any) that contains an updateable content catalog. If this is empty, updates cannot occur.

    List<CachedAssetState> carryOverCacheState

    Cached state that needs to carry over from the previous build. This mainly affects Content Update.

    Returns
    Type Description
    Boolean

    True if the file is saved, false otherwise.

    In This Article
    • SaveContentState(String, List<AddressableAssetEntry>, IDependencyData, String, String)
    • SaveContentState(List<ContentCatalogDataEntry>, String, List<AddressableAssetEntry>, IDependencyData, String, String)
    • SaveContentState(List<ContentCatalogDataEntry>, String, List<AddressableAssetEntry>, IDependencyData, String, String, List<CachedAssetState>)
    Back to top
    Terms of use
    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