docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct LabelToggle

    Helper class for a toggle for editor views representing a tag of a content

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Services.Ugc.Bridge.Editor
    Assembly: Unity.Services.Ugc.Bridge.Editor.dll
    Syntax
    public struct LabelToggle

    Constructors

    LabelToggle(Tag)

    Declaration
    public LabelToggle(Tag tag)
    Parameters
    Type Name Description
    Tag tag

    Fields

    Tag

    The full label (not truncated) of the Tag.

    Declaration
    public readonly Tag Tag
    Field Value
    Type Description
    Tag

    Properties

    IsActive

    The value of the toggle. Is the label selected.

    Declaration
    public bool IsActive { readonly get; set; }
    Property Value
    Type Description
    bool

    Label

    The fullLabel of the LabelToggle. Return a truncated version of the fullLabel if >= to the maximum tag fullLabel characters allowed.

    Declaration
    public string Label { get; }
    Property Value
    Type Description
    string

    LabelGUIContent

    GUIContent representation of the fullLabel of the LabelToggle.

    Declaration
    public GUIContent LabelGUIContent { get; }
    Property Value
    Type Description
    GUIContent

    Methods

    CalcWidth()

    Calculate the width the LabelToggle will occupy in a editor view.

    Declaration
    public float CalcWidth()
    Returns
    Type Description
    float

    The width of the LabelToggle

    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)