Class AssetLabelReference | Package Manager UI website
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
    System.Object
    AssetLabelReference
    Namespace: UnityEngine.AddressableAssets
    Syntax
    [Serializable]
    public class AssetLabelReference : IKeyEvaluator

    Properties

    labelString

    The label string.

    Declaration
    public string labelString { get; set; }
    Property Value
    Type Description
    System.String

    RuntimeKey

    The runtime key used for indexing values in the Addressables system.

    Declaration
    public object RuntimeKey { get; }
    Property Value
    Type Description
    System.Object
    Implements
    IKeyEvaluator.RuntimeKey

    Methods

    GetHashCode()

    Get the hash code of this object.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    System.Int32

    The hash code of the label string.

    Overrides
    System.Object.GetHashCode()

    RuntimeKeyIsValid()

    Checks if the current RuntimeKey is valid.

    Declaration
    public bool RuntimeKeyIsValid()
    Returns
    Type Description
    System.Boolean

    Whether the RuntimeKey is valid or not.

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