docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct LabelDescriptor

    This struct contains the identifiers for a label.

    Inherited Members
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Cloud.Assets
    Assembly: Unity.Cloud.Assets.dll
    Syntax
    public readonly struct LabelDescriptor

    Constructors

    LabelDescriptor(OrganizationId, string)

    Creates an instance of the LabelDescriptor struct.

    Declaration
    public LabelDescriptor(OrganizationId organizationId, string labelName)
    Parameters
    Type Name Description
    OrganizationId organizationId

    The label's organization genesis ID.

    string labelName

    The unique name of the label.

    Fields

    LabelName

    A unique name for the label. Uniqueness is scoped to the organization.

    Declaration
    public readonly string LabelName
    Field Value
    Type Description
    string

    OrganizationId

    The label's organization genesis ID.

    Declaration
    public readonly OrganizationId OrganizationId
    Field Value
    Type Description
    OrganizationId

    Methods

    Equals(object)

    Validate obj is a LabelDescriptor instance and have the same values as this instance.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    Compare the values with this instance.

    Returns
    Type Description
    bool

    true if both instance have the same values; false otherwise.

    Overrides
    ValueType.Equals(object)

    Equals(LabelDescriptor)

    Returns whether two LabelDescriptor objects are equals.

    Declaration
    public bool Equals(LabelDescriptor other)
    Parameters
    Type Name Description
    LabelDescriptor other

    Compare the values with this instance.

    Returns
    Type Description
    bool

    true if both instance have the same values; false otherwise.

    GetHashCode()

    Compute a hash code for the object.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    Overrides
    ValueType.GetHashCode()
    Remarks
    • You should not assume that equal hash codes imply object equality.
    • You should never persist or use a hash code outside the application domain in which it was created, because the same object may hash differently across application domains, processes, and platforms.

    Operators

    operator ==(LabelDescriptor, LabelDescriptor)

    Get if two LabelDescriptor represent the same.

    Declaration
    public static bool operator ==(LabelDescriptor left, LabelDescriptor right)
    Parameters
    Type Name Description
    LabelDescriptor left

    Compare with this first instance.

    LabelDescriptor right

    Compare with this other instance.

    Returns
    Type Description
    bool

    true if both instances represent the same; false otherwise.

    operator !=(LabelDescriptor, LabelDescriptor)

    Get if two LabelDescriptor does not represent the same.

    Declaration
    public static bool operator !=(LabelDescriptor left, LabelDescriptor right)
    Parameters
    Type Name Description
    LabelDescriptor left

    Compare with this first instance.

    LabelDescriptor right

    Compare with this other instance.

    Returns
    Type Description
    bool

    true if both instances are not the same; false if both instances are the same.

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)