Class AddressableAssetKey
Serializable class representing a key or set of keys for Unity Addressable assets, with merge mode support.
[Serializable]
public class AddressableAssetKey
- Inheritance
-
AddressableAssetKey
- Inherited Members
Constructors
AddressableAssetKey(List<string>, MergeMode)
Constructs an AddressableAssetKey with a list of keys and optional merge mode.
public AddressableAssetKey(List<string> keys, Addressables.MergeMode mergeMode = MergeMode.None)
Parameters
keysList<string>List of addressable asset keys.
mergeModeAddressables.MergeModeMerge mode for combining keys.
AddressableAssetKey(string, MergeMode)
Constructs an AddressableAssetKey with a single key and optional merge mode.
public AddressableAssetKey(string key, Addressables.MergeMode mergeMode = MergeMode.None)
Parameters
keystringSingle addressable asset key.
mergeModeAddressables.MergeModeMerge mode for combining keys.
Fields
Keys
List of addressable asset keys.
public List<string> Keys
Field Value
MergeMode
Merge mode for combining addressable keys.
public Addressables.MergeMode MergeMode
Field Value
- Addressables.MergeMode
Methods
Equals(object)
Determines whether the specified object is equal to the current AddressableAssetKey. Compares the sequence of keys.
public override bool Equals(object obj)
Parameters
objobjectObject to compare.
Returns
- bool
True if the keys are equal, otherwise false.
GetHashCode()
Returns a hash code for the AddressableAssetKey, combining hash codes of all keys.
public override int GetHashCode()
Returns
- int
Combined hash code of all keys.
ToString()
Returns a string representation of the AddressableAssetKey, joining all keys with commas.
public override string ToString()
Returns
- string
Comma-separated string of all keys.