pixijs / particle-emitter

A particle system for PixiJS
http://pixijs.io/particle-emitter/docs
MIT License
793 stars 125 forks source link

[request] Callback on emit complete. #67

Closed Rojoss closed 6 years ago

Rojoss commented 6 years ago

Hello, would it be possible to add an callback when the emission has completed? So basically when the lifetime of the emitter has ended. I would like to do cleanup of stuff when I have emitters that only play once. Just destroying the emitter is not enough for me. Currently I have to set a timeout for the lifetime of the emitter to do the cleanup but I assume that you know in the emitter when it is done emitting since you also added playOnceAndDestroy.

andrewstart commented 6 years ago

Added in version 2.1.8

Rojoss commented 6 years ago

Sweet, thanks a lot! 👍