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
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
customData
Plugin-specific custom data stored as key-value pairs.
public CustomData[] customData
Field Value
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
hashString
The hash value of the AssetBundle.
public string hashString
Field Value
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
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
Methods
GetCustomData(string)
Gets a custom data value by key.
public string GetCustomData(string key)
Parameters
keystringThe 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
withHashboolWhether 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
ToString()
Returns the object information as a JSON string.
public override string ToString()
Returns
- string
A JSON-formatted string