Scripting API

Scripting API

LengthUnit

Enum in Abyss.Core, from Abyss.Core.

The unit a curve writing a length of Bevy's UI writes it in: pixels unless it says otherwise, named as CSS names them.

public enum LengthUnit

Values

NameValueDescription
Px0px.
Percent1%, of what Bevy measures the length against.
Vw2vw, a hundredth of the screen's width.
Vh3vh, a hundredth of its height.
VMin4vmin, of the shorter of the two.
VMax5vmax, of the longer.
Em6em, the element's font size.
Rem7rem, the root's font size.