文档

Unity Engine

Download Unity

Unity Engine

ElapsedTime

The total cumulative elapsed time in seconds.
阅读时间1 分钟最后更新于 20 天前

Definition

  • Type: Field
  • Namespace: Unity.Core
  • Assembly: UnityEngine.EntitiesModule
public readonly double ElapsedTime

Remarks

The ElapsedTime for each World is initialized to zero when the World is created. Thus, comparing timestamps across Worlds (or between Worlds and MonoBehaviours) is generally an error.