Class AssetLabelReference | Addressables | 1.6.2
docs.unity.cn
    Show / Hide Table of Contents

    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.

    Inheritance
    Object
    AssetLabelReference
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Object.MemberwiseClone()
    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
    IKeyEvaluator.RuntimeKey

    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
    Object.GetHashCode()

    RuntimeKeyIsValid()

    Checks if the current RuntimeKey is valid.

    Declaration
    public bool RuntimeKeyIsValid()
    Returns
    Type Description
    Boolean

    Whether the RuntimeKey is valid or not.

    Implements
    IKeyEvaluator.RuntimeKeyIsValid()
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX