粒子的初始生命周期。
这是该粒子在秒的总生命周期。当粒子系统第一次产生出粒子时,它设定此值。
using UnityEngine;
public class Example : MonoBehaviour { void Start() { ParticleSystem.Particle particle = new ParticleSystem.Particle();
// Calculate how long the particle has been alive. float timeAlive = particle.startLifetime - particle.lifetime; } }