How to enable/disable Particle System Prewarm through code

Hi,
I need to be able to set prewarm enabled/disabled through code(c#) on instantiation of a particle system.
I just cant find how to access prewarm. I know it is part of particle system but for the life of me I cant find it. Any help would be much appreciated.

Thanks!

Here

and

Here

Edit : I was missing something. Ok so there is no way to directly access preawrm. but instead to use

ps.Simulate(ps.duration);

thanks :smiley:

Hmmm actually that doesnt work in the same way. It does start the particle system, but it stops and then doesnt enable at all.