Struct LabelToggle
Helper class for a toggle for editor views representing a tag of a content
Inherited Members
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 |