mob-sakai / ParticleEffectForUGUI

Render particle effect in UnityUI(uGUI). Maskable, sortable, and no extra Camera/RenderTexture/Canvas.
MIT License
4.41k stars 625 forks source link

Feature Request: UIParticle.Stop() continues particle simulation (similar to ParticleSystem.Stop()) #240

Closed cdanek closed 1 year ago

cdanek commented 1 year ago

Lovely library, thanks for writing.

I would like functionality for Stop() (perhaps a newly named function named StopEmission()) that continues simulation, but simply stops all particle systems from emitting. Your current implementation, from what I can understand, pauses the simulation and renders the systems as paused.

The use case is a UIParticle system (3 unity ParticleSystems) that I'd like to turn off, but have the existing particles continue to live (smoke and sparks off a fuse).

Calling UIParticle.Stop() freezes the particles, and setting the game object inactive instantly kills the particles.

Without a method like this, I have to manually keep track of the emission rates of all the subsystems and turn them down to 0 (and back up later).

Thank you for the consideration!

github-actions[bot] commented 1 year ago

:tada: This issue has been resolved in version 4.2.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: