docs.unity.cn
    Show / Hide Table of Contents

    Class CompatibilityAssetBundleManifest

    Accesses information about all the asset bundles stored in a manifest file.

    Inheritance
    Object
    CompatibilityAssetBundleManifest
    Namespace: UnityEngine.Build.Pipeline
    Syntax
    public class CompatibilityAssetBundleManifest : ScriptableObject, ISerializationCallbackReceiver

    Methods

    GetAllAssetBundles()

    Retrieves the names of all the asset bundles.

    Declaration
    public string[] GetAllAssetBundles()
    Returns
    Type Description
    String[]

    Returns the names of all the asset bundles.

    GetAllAssetBundlesWithVariant()

    Oboslete method.

    Declaration
    public string[] GetAllAssetBundlesWithVariant()
    Returns
    Type Description
    String[]

    Returns an empty array.

    GetAllDependencies(String)

    Retrieves all bundle dependencies based on the specified bundle name.

    Declaration
    public string[] GetAllDependencies(string assetBundleName)
    Parameters
    Type Name Description
    String assetBundleName

    The bundle name to lookup.

    Returns
    Type Description
    String[]

    Returns all the dependencies of the bundle.

    GetAssetBundleCrc(String)

    Retrieves the cyclic redundancy check information for specified asset bundle.

    Declaration
    public uint GetAssetBundleCrc(string assetBundleName)
    Parameters
    Type Name Description
    String assetBundleName

    The bundle name.

    Returns
    Type Description
    UInt32

    Returns the cyclic redundancy check information for specified asset bundle.

    GetAssetBundleHash(String)

    Retrieves the hash of the asset bundle.

    Declaration
    public Hash128 GetAssetBundleHash(string assetBundleName)
    Parameters
    Type Name Description
    String assetBundleName

    The name of the bundle.

    Returns
    Type Description
    Hash128

    Returns the hash.

    GetDirectDependencies(String)

    Retrieves all bundle dependencies based on the specified bundle name.

    Declaration
    public string[] GetDirectDependencies(string assetBundleName)
    Parameters
    Type Name Description
    String assetBundleName

    The bundle name to lookup.

    Returns
    Type Description
    String[]

    Returns all the dependencies of the bundle.

    OnAfterDeserialize()

    Puts back the converted data into its original data structure after a domain reload.

    Declaration
    public void OnAfterDeserialize()

    OnBeforeSerialize()

    Converts our data to a serialized structure before a domain reload.

    Declaration
    public void OnBeforeSerialize()

    SetResults(Dictionary<String, BundleDetails>)

    Stores the bundle information.

    Declaration
    public void SetResults(Dictionary<string, BundleDetails> results)
    Parameters
    Type Name Description
    Dictionary<String, BundleDetails> results

    The bundle information.

    ToString()

    Returns a formatted string with the contents of the manifest file.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    Returns a string suitable for saving into a manifest file.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Thursday, February 10, 2022
    Terms of use