Class CompatibilityAssetBundleManifest
Accesses information about all the asset bundles stored in a manifest file.
Inherited Members
Namespace: UnityEngine.Build.Pipeline
Syntax
[Serializable]
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()
Implements
OnBeforeSerialize()
Converts our data to a serialized structure before a domain reload.
Declaration
public void OnBeforeSerialize()
Implements
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()
Converts the information about the manifest file to a formatted string.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | Returns information about the manifest file. |