Enum ScyllaUILengthUnit
Unit mode for a ScyllaUILength value. Distinguishes between absolute reference-resolution pixel values and percentage values resolved against a parent dimension at solve time.
Namespace: Scylla.Core.Util.UI
Assembly: ScyllaCore.dll
Syntax
public enum ScyllaUILengthUnit
Remarks
Absolute values are reference-resolution pixels and inherit the active
CanvasScaler scaling automatically. Percent values are resolved at solve
time against a property-specific parent dimension (canvas size for screen
margins, stack size for padding and gap, parent size for min/preferred sizes).
A Percent value on a Hug axis is a
circular dependency (the stack size depends on its content but content size
depends on the stack size). The solver detects this case, falls back to zero
for the offending value, and emits a one-time warning.
Fields
| Name | Description |
|---|---|
| Absolute | Absolute reference-resolution pixels. Scaled by the active |
| Percent | Fraction of the relevant parent dimension, expressed as a value where
|