Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Length

Creates from a float and an optional LengthUnit.
Read time 1 minuteLast updated 6 days ago

Definition

Length(float)

Creates from a float and an optional LengthUnit.
public Length(float value)

Parameters

value

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.