文档

Unity Engine

Unity Engine

time

Playback position in seconds.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ParticleSystemModule
public float time { get; set; }

Remarks

Use this to read the current playback time or to seek to a new playback time. For a looping system, this value wraps within the duration. For systems that specify a Start Delay, getting the time ignores the delay.
Additional Resources: totalTime, ParticleSystem.MainModule.startDelay.