Struct BundleDetails
Struct containing detailed information about a built asset bundle.
Namespace: UnityEngine.Build.Pipeline
Syntax
[Serializable]
public struct BundleDetails : IEquatable<BundleDetails>
Properties
Crc
Cyclic redundancy check of the content contained inside of the asset bundle. This value will not change between identical asset bundles with different compression options.
Declaration
public uint Crc { get; set; }
Property Value
Type | Description |
---|---|
UInt32 |
Dependencies
The array of all dependent asset bundles for this asset bundle.
Declaration
public string[] Dependencies { get; set; }
Property Value
Type | Description |
---|---|
String[] |
FileName
Specific file name on disk of the asset bundle.
Declaration
public string FileName { get; set; }
Property Value
Type | Description |
---|---|
String |
Hash
The hash version of the content contained inside of the asset bundle. This value will not change between identical asset bundles with different compression options.
Declaration
public Hash128 Hash { get; set; }
Property Value
Type | Description |
---|---|
Hash128 |
Methods
Equals(Object)
Determines if the current bundle details instance is equivalent the specified bundle details.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
Object | obj | The bundle details to compare to. |
Returns
Type | Description |
---|---|
Boolean | Returns true if the bundle details are equivalent. Returns false otherwise. |
Overrides
Equals(BundleDetails)
Determines if the current instance is equivalent to the specified bundle details object.
Declaration
public bool Equals(BundleDetails other)
Parameters
Type | Name | Description |
---|---|---|
BundleDetails | other | The object to compare to. |
Returns
Type | Description |
---|---|
Boolean | Returns true if the bundle details objects are equivalent. Returns false otherwise. |
GetHashCode()
Creates the hash code of the bundle information.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | Returns the created hash code. |
Overrides
Operators
Equality(BundleDetails, BundleDetails)
Declaration
public static bool operator ==(BundleDetails a, BundleDetails b)
Parameters
Type | Name | Description |
---|---|---|
BundleDetails | a | |
BundleDetails | b |
Returns
Type | Description |
---|---|
Boolean |
Inequality(BundleDetails, BundleDetails)
Declaration
public static bool operator !=(BundleDetails a, BundleDetails b)
Parameters
Type | Name | Description |
---|---|---|
BundleDetails | a | |
BundleDetails | b |
Returns
Type | Description |
---|---|
Boolean |