This version of Unity is unsupported.

Length Constructor

Declaration

public Length(float value);

Declaration

public Length(float value, UIElements.LengthUnit unit);

Description

Creates from a float and an optionnal LengthUnit.

LengthUnit.Pixel is the default unit.