CooldownWipe is a VisualElement that paints a clockwise (or counter-clockwise) pie-slice mask over a square — useful for skill cooldowns, status-effect timers, and buff durations rendered on top of an icon.

Cooldown Wipe

Setup

html
<luna:CooldownWipe Progress="0.4" SegmentAmount="20" FillColor="#000000C8" />

Drive Progress from C# each frame (or via tween):

csharp
wipe.Progress = remainingTime / totalCooldown;

Progress is auto-clamped to [0, 1]. At 1 the entire square is filled; at 0 nothing is drawn.

Inspector (UxmlAttributes)

AttributeTypeDescription
Progressfloat0–1 fill amount (auto-clamped).
FillColorColorWipe fill color (default opaque black).
SegmentAmountintPolygon segments at full progress; higher = smoother arc (default 20).
ReverseWindingboolReverses the sweep direction.
LineWidthfloatOutline stroke width in pixels (default 0, disabled).
LineColorColorOutline stroke color (default opaque black).

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