Class AssetLabelReference
Reference to an asset label. This class can be used in scripts as a field and will use a CustomPropertyDrawer to provide a DropDown UI of available labels.
Inherited Members
Namespace: UnityEngine.AddressableAssets
Syntax
[Serializable]
public class AssetLabelReference : IKeyEvaluator
Properties
labelString
The label string.
Declaration
public string labelString { get; set; }
Property Value
Type | Description |
---|---|
String |
RuntimeKey
The runtime key used for indexing values in the Addressables system.
Declaration
public object RuntimeKey { get; }
Property Value
Type | Description |
---|---|
Object |
Implements
Methods
GetHashCode()
Get the hash code of this object.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
Int32 | The hash code of the label string. |
Overrides
RuntimeKeyIsValid()
Checks if the current RuntimeKey is valid.
Declaration
public bool RuntimeKeyIsValid()
Returns
Type | Description |
---|---|
Boolean | Whether the RuntimeKey is valid or not. |