Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

Length Constructor

Declaration

public Length(float value);

Description

Creates from a float and an optional LengthUnit.

LengthUnit.Pixel is the default unit.


Declaration

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

Description

Creates from a float and an optional LengthUnit.

LengthUnit.Pixel is the default unit.