RadialLoading is a VisualElement that paints an indeterminate spinning arc on a circular track — useful for "working…" states where you don't have a known end. For a determinate radial progress bar, see Radial ProgressBar.

Radial Loading

Setup

html
<luna:RadialLoading ArcSize="0.2" LineWidth="10" UpdateFrequency="10" Step="0.05" />

The control auto-starts its animation on construction. Stop and restart explicitly via StopAnimation() / StartAnimation().

Inspector (UxmlAttributes)

Radial Loading Inspector

AttributeTypeDescription
ArcSizefloatLength of the spinning arc as a fraction of the full circle (0–1, default 0.2). Tweens smoothly to new values.
LineWidthfloatStroke width in pixels (default 10).
UpdateFrequencylongFrame interval in milliseconds (default 10).
StepfloatHow far the arc rotates per frame (default 0.05).

CSS variables

VariableTargets
--radial-loading-track-colorThe full-circle track behind the arc.
--radial-loading-line-colorThe spinning arc itself.
css
.my-spinner { --radial-loading-track-color: rgb(60, 60, 60); --radial-loading-line-color: rgb(255, 100, 100); }

CSS classes

ClassApplied when
radial-loadingAlways.

API

Properties

PropertyTypeDescription
TrackColorOverrideColor?Forces a track color, bypassing USS variable. Set null to fall back to USS.
ProgressColorOverrideColor?Forces an arc color, bypassing USS variable.

Methods

MethodDescription
StartAnimation()(Re)starts the rotation scheduler.
StopAnimation()Pauses the rotation scheduler.

See also

Settings

Theme

Light

Contrast

Material

Dark

Dim

Material Dark

System

Sidebar(Light & Contrast only)

Light
Dark

Font Family

DM Sans

Wix

Inclusive Sans

AR One Sans

Direction

LTR
RTL