Class LoadingDots
Three staggered dots standing in for a value that is not known yet.
Implements
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
[UxmlElement]
public class LoadingDots : BaseVisualElement, IEventHandler, IResolvedStyle, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IContextOverrideElement, IAdditionalDataHolder
Remarks
A compact inline "still loading" affordance, used by CreditsPill while the balance is being fetched and by conversation titles while a suggestion is being generated.
USS has no keyframe animations, so the pulse is driven from C# the same way Skeleton drives its own: a scheduled item writes each dot's opacity every frame, runs only while the element is attached to a panel and animated is true, and restores full opacity when it stops. The three dots share one cycle, offset by dotDelayMs each, which is what makes them read as a wave rather than a blink.
Examples
Standing in for a number.
var dots = new LoadingDots();
parentElement.Add(dots);
A static version, for a reduced motion preference.
<appui:LoadingDots animated="false" />
Constructors
LoadingDots()
Default constructor.
Declaration
public LoadingDots()
Fields
animatedUssClassName
The styling class applied while the dots pulse.
Declaration
public const string animatedUssClassName = "appui-loading-dots--animated"
Field Value
| Type | Description |
|---|---|
| string |
dotCount
How many dots there are.
Declaration
public const int dotCount = 3
Field Value
| Type | Description |
|---|---|
| int |
dotUssClassName
The styling class of one dot.
Declaration
public const string dotUssClassName = "appui-loading-dots__dot"
Field Value
| Type | Description |
|---|---|
| string |
ussClassName
The LoadingDots main styling class.
Declaration
public const string ussClassName = "appui-loading-dots"
Field Value
| Type | Description |
|---|---|
| string |
Properties
animated
Whether the dots pulse. True by default.
Declaration
[CreateProperty]
[UxmlAttribute]
public bool animated { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |