pixijs / particle-emitter

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

Destroyed property #116

Closed Aiysen closed 2 years ago

Aiysen commented 4 years ago

Hello.

Could you add property "destroyed" with boolean data true / false for emitter?

Thank you.

andrewstart commented 4 years ago

This would be simple enough. While looking to see if there are properties that I could use to run a getter without having to add a full boolean, I realized that destroy() doesn't clear out anything that couldn't be fixed with another init() call and setting parent, which are all acceptable use cases. Would it be more convenient to have a ready boolean that checks those things (false before init() and after destroy(), true if able to run)?

Aiysen commented 4 years ago

Property "ready" match me too, if after destroy it change to false

andrewstart commented 2 years ago

Finally got around to this in version 5.0.1.