文档

Unity Engine

Unity Engine

deltaTime

Amount of time that has passed since the last recorded change in Touch values.
阅读时间1 分钟最后更新于 21 天前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.InputLegacyModule
public float deltaTime { get; set; }

Remarks

Values for the various touch properties are updated periodically. The deltaTime value is simply the amount of time that elapsed between the previous update and the current one. This is primarily useful for determining the movement speed of the touch position with reference to Touch.deltaPosition.