You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sorry to be such a noob at this, but as I've never worked with particles before this is all new to me! I've got 3 or 4 cool effects I'm using - 3 are burst type things that only run once when something happens, and 1 is an ongoing bubble generator that runs all of the time.
Do I need to do something to clean up the "run once" emitters? Is it ok to just keep creating them over and over again, or should I create them all in the beginning, and then start and stop them?
thanks in advance for any advice!
The text was updated successfully, but these errors were encountered:
Because the emitters reuse their particles, it is better to keep the "run once" emitters for the next time you need them. When you no longer need them, you should call their destroy() method to make sure that they and all their particles get garbage collected. That does not destroy the Textures that they use, so if you'd like to clean up the memory from those, you'll have to destroy them (and their BaseTextures) yourself.
Sorry to be such a noob at this, but as I've never worked with particles before this is all new to me! I've got 3 or 4 cool effects I'm using - 3 are burst type things that only run once when something happens, and 1 is an ongoing bubble generator that runs all of the time.
Do I need to do something to clean up the "run once" emitters? Is it ok to just keep creating them over and over again, or should I create them all in the beginning, and then start and stop them?
thanks in advance for any advice!
The text was updated successfully, but these errors were encountered: