Dynamic Particle System Lifetime??

I Have Tried Changing Lifetime Of A Particle System Dynamically Via Script, But It Seems Like Unity3D Doesn’t Have A Way Or A Function To Do This, So I Have Tried 2 Ways, Which I Have Expected ParticleSystem.main.startLifetime Doesn’t Work Before Testing It:

main.startLifetime = 2.5f;

And:

particle.time = main.startLifetime.constant * 0.8f;

Both Of Them Won’t Work, So Is There A Way To Do That?
Thanks…

particleSystem.startLifetime = 1.2f; // 1.2 seconds

To access the “remainingLifetime” of particles, you need to getParticles, modify each particle in the loop then setParticles. Simply follow the code example in the doc: