Class Badge
Badge UI element.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: solution.dll
Syntax
public class Badge : VisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle
Constructors
Name | Description |
---|---|
Badge() | Default constructor. |
Fields
Name | Description |
---|---|
badgeUssClassName | The Badge badge styling class. |
horizontalAnchorUssClassName | The Badge horizontal anchor styling class prefix. |
labelUssClassName | The Badge label styling class. |
overlapUssClassName | The Badge overlap type styling class prefix. |
ussClassName | The Badge main styling class. |
variantClassName | The Badge variant styling class prefix. |
verticalAnchorUssClassName | The Badge vertical anchor styling class prefix. |
zeroUssClassName | The Badge Zero content styling class. |
Properties
Name | Description |
---|---|
backgroundColor | The background color of the Badge. |
color | The content color of the Badge. |
content | The text of the Badge. |
contentContainer | The content container of the Badge. |
horizontalAnchor | The horizontal anchor of the Badge. |
max | The maximum value of the Badge. |
overlapType | The overlap type of the Badge. |
showZero | Whether the Badge should show zero values. |
variant | The variant of the Badge. |
verticalAnchor | The vertical anchor of the Badge. |