Scripting API

TimeValue

struct in UnityEngine.UIElements · UnityEngine.UIElementsModule

11 of 11 of Unity's membersUnity's documentation
In Tassix

A time in seconds or milliseconds.

Constructors 1

TimeValue(float value)
TimeValue(float value, TimeUnit unit)

Properties 2

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

Methods 5

bool Equals(TimeValue other)
bool Equals(object? obj)
int GetHashCode()
static TimeValue Milliseconds(float value)
static TimeValue Seconds(float value)
string ToString()

Operators 3

static implicit operator TimeValue(float value)
static bool operator !=(TimeValue lhs, TimeValue rhs)
static bool operator ==(TimeValue lhs, TimeValue rhs)