Class CompatibilityAssetBundleManifest
Accesses information about all the asset bundles stored in a manifest file.
Implements
Inherited Members
Namespace: UnityEngine.Build.Pipeline
Assembly: Unity.ScriptableBuildPipeline.dll
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 |
---|---|
uint | 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. |