Scripting API

Length

struct in UnityEngine.UIElements · UnityEngine.UIElementsModule

14 of 15 of Unity's membersUnity's documentation
In Tassix

A length in pixels or percent, or auto or none.

Constructors 1

Length(float value)
Length(float value, LengthUnit unit)

Properties 2

LengthUnit unit { get; set; }
float value { get; set; }

Methods 8

static Length Auto()
bool Equals(Length other)
bool Equals(object? obj)
int GetHashCode()
bool IsAuto()
bool IsNone()
static Length None()
static Length Percent(float value)
string ToString()

Operators 3

static implicit operator Length(float value)
static bool operator !=(Length a, Length b)
static bool operator ==(Length a, Length b)

Not in Tassix yet 1

Pixels