文档

Unity Engine


User Manual

Script Reference

Unity Engine


TimeValue

Represents a time value.
阅读时间1 分钟最后更新于 21 天前

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.