Table of Contents

Class AssetBundleInfo

Namespace
TAssetBundle
Assembly
TAssetBundle.dll

Class that stores information about an AssetBundle.

[Serializable]
public class AssetBundleInfo
Inheritance
AssetBundleInfo
Inherited Members

Fields

assetBundleName

The name of the AssetBundle.

public string assetBundleName

Field Value

string

assetPaths

A list of paths of assets contained in this AssetBundle.

public string[] assetPaths

Field Value

string[]

builtin

Indicates whether the AssetBundle is built-in.

public bool builtin

Field Value

bool

customData

Plugin-specific custom data stored as key-value pairs.

public CustomData[] customData

Field Value

CustomData[]

dependencies

A list of names of other AssetBundles that this AssetBundle depends on.

public string[] dependencies

Field Value

string[]

encrypt

Indicates whether the AssetBundle is encrypted.

public bool encrypt

Field Value

bool

hashString

The hash value of the AssetBundle.

public string hashString

Field Value

string

scenePaths

A list of paths of scenes contained in this AssetBundle.

public string[] scenePaths

Field Value

string[]

size

The size of the AssetBundle in bytes.

public long size

Field Value

long

tags

A list of tags applied to this AssetBundle.

public string[] tags

Field Value

string[]

uncompressed

Indicates whether the AssetBundle is uncompressed.

public bool uncompressed

Field Value

bool

Methods

GetCustomData(string)

Gets a custom data value by key.

public string GetCustomData(string key)

Parameters

key string

The key to look up.

Returns

string

The value if found, null otherwise.

GetFileName(bool)

Returns the file name of the AssetBundle.

public string GetFileName(bool withHash)

Parameters

withHash bool

Whether to include the hash value

Returns

string

The AssetBundle file name

SetCustomData(string, string)

Sets a custom data value by key. Creates the array if needed.

public void SetCustomData(string key, string value)

Parameters

key string

The key to set.

value string

The value to set.

ToString()

Returns the object information as a JSON string.

public override string ToString()

Returns

string

A JSON-formatted string