Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a way to stop and start an emitter, hiding all current visibility and removing any emitting particles #85

Open
johnnyrainbow opened this issue Jun 25, 2024 · 3 comments

Comments

@johnnyrainbow
Copy link

Pause does not quite do what I want as it suspends the current particles in air and doesn't hide the emitter. Setting the visibility of the emitter didn't seem to quite work either, as the particles remained

@Alchemist0823
Copy link
Owner

Have you tried restart() function on particleSystem

@johnnyrainbow
Copy link
Author

johnnyrainbow commented Jun 27, 2024

Correct me if I'm wrong but restarting will reset the time, and if the particle system is set as looping:true it will begin emitting again.

At the moment it seems that restarting, and then pausing may work but I seem to have a performance degradation even though its now not emitting (the degradation seems to not be draw call or triangle related but cpu related - will try and debug more though). At this time, completely deleting the emitter and creating a new one seems like the way to go

@Alchemist0823
Copy link
Owner

stop() function hides all current visibility and removes any emitting particles, I don't know if that works for you.

Do you know the performance degradation happens at which stage?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants