playMaker

Author Topic: How to stop a particle system cleanly  (Read 1180 times)

playmakertester

  • Full Member
  • ***
  • Posts: 211
How to stop a particle system cleanly
« on: July 09, 2021, 08:37:29 AM »
How to stop a particle system cleanly

When you stop the particle system with Particle sytem clear, the particles that have already been generated will suddenly disappear before the life time is over.

Is there any action that will stop the whole particle system but leave the already generated particles until the life time?

I found that I can use the function particle.Stop (true, ParticleSystemStopBehavior.StopEmitting);, but I was not sure if Playmaker has a corresponding action.

...

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
Re: How to stop a particle system cleanly
« Reply #1 on: July 09, 2021, 09:48:41 AM »
There is a particle system stop action on ecosystem.

Put particle system on separate object
Particle system stop
Wait for a particle lifetime
Destroy self

playmakertester

  • Full Member
  • ***
  • Posts: 211
Re: How to stop a particle system cleanly
« Reply #2 on: July 09, 2021, 10:31:42 AM »
perfect! thanks!