docs.unity.cn
    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
    [Obsolete]
    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.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Friday, August 12, 2022
    Terms of use