Obi Official Forum
Help Never stop generating particles - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: Obi Fluid (https://obi.virtualmethodstudio.com/forum/forum-3.html)
+--- Thread: Help Never stop generating particles (/thread-1436.html)



Never stop generating particles - Alx06 - 19-10-2019

Hello,

I'm really new in the Unity world so please be kind with me Sonrisa

I'm playing with the FluidViscosity sample scene and I'd like to generate particles with the emitter continuously.
Currently it does emit 2000 particles and then stops.
I'd like to have a continuous flow.

Is that possible?
How can I achieve that?

Any help would be really appreciated.

Best regards and thanks in advance.

Alex


RE: Never stop generating particles - josemendez - 20-10-2019

(19-10-2019, 10:54 AM)Alx06 Wrote: Hello,

I'm really new in the Unity world so please be kind with me Sonrisa

I'm playing with the FluidViscosity sample scene and I'd like to generate particles with the emitter continuously.
Currently it does emit 2000 particles and then stops.
I'd like to have a continuous flow.

Is that possible?
How can I achieve that?

Any help would be really appreciated.

Best regards and thanks in advance.

Alex

Hi Alex,

If you never stop to generate particles and never allow them to disappear, your performance will go down.

As in most particle systems (including Unity's), when a particle "dies" it is returned to the emitter's particle pool, ready for being re-emitted as soon as needed. If you simply want to have a continuous flow of particles so that they are re-emitted as soon as they disappear, either reduce their lifetime or increase the amount of particles in the emitter. This way particles won't Iive long enough for the emitter pool to run out of particles.

kind regards,