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 LengthUnitValues
| Name | Value | Description |
|---|---|---|
Px | 0 | px. |
Percent | 1 | %, of what Bevy measures the length against. |
Vw | 2 | vw, a hundredth of the screen's width. |
Vh | 3 | vh, a hundredth of its height. |
VMin | 4 | vmin, of the shorter of the two. |
VMax | 5 | vmax, of the longer. |
Em | 6 | em, the element's font size. |
Rem | 7 | rem, the root's font size. |
