Length
Creates from a float and an optional LengthUnit.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Constructor
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
Length(float)
Creates from a float and an optional LengthUnit.
public Length(float value)
Parameters
Remarks
LengthUnit.Pixel is the default unit.
Length(float, LengthUnit)
Creates from a float and an optional LengthUnit.
public Length(float value, LengthUnit unit)
Parameters
Remarks
LengthUnit.Pixel is the default unit.