Version: 2023.2
public float time ;

描述

播放位置(以秒为单位)。

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: ParticleSystem.MainModule.totalTime, ParticleSystem.MainModule.startDelay.