Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


TimeValue

Represents a time value.
Read time 1 minuteLast updated 6 days ago

Definition

public struct TimeValue : IEquatable<TimeValue>

Constructors

Constructor

Description

TimeValue(System.Single)Creates from a float and an optional TimeUnit.
TimeValue(System.Single,UnityEngine.UIElements.TimeUnit)Creates from a float and an optional TimeUnit.

Properties

Property

Description

unitThe unit of the value property.
valueThe time value.

Static Methods

Method

Description

MillisecondsCreates a millisecond TimeValue from a float.
SecondsCreates a second TimeValue from a float.