docs.unity3d.com
    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
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023