Table of Contents

Class AddressableAssetKey

Namespace
FishMMO.Shared
Assembly
FishMMO.Shared.dll

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

keys List<string>

List of addressable asset keys.

mergeMode Addressables.MergeMode

Merge 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

key string

Single addressable asset key.

mergeMode Addressables.MergeMode

Merge mode for combining keys.

Fields

Keys

List of addressable asset keys.

public List<string> Keys

Field Value

List<string>

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

obj object

Object 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.