Back to API Reference
Struct
UnitValue
sealed
Implements:IEquatable<UnitValue>
A numeric parameter value paired with the unit it is expressed in — the serialized form of a unit token (24, 150%, 0.5em, +10). Used as a modifier field type so the authoring default carries both number and unit in one place.
[ctor]public UnitValue(float value, UnitKind unit)public static UnitValue Absolute(float value)public static UnitValue Percent(float value)public static UnitValue Em(float value)public static UnitValue Delta(float value)public static float ResolvePx(float value, UnitKind unit, float emSize)Loose value/unit overload for values read via ParameterReader.NextUnitFloat.
public bool Equals(UnitValue other)public UnitKind unit