Particle#pendingDestroy

pendingDestroy : boolean

A Game Object is that is pendingDestroy is flagged to have its destroy method called on the next logic update.
You can set it directly to allow you to flag an object to be destroyed on its next update.

This is extremely useful if you wish to destroy an object from within one of its own callbacks
such as with Buttons or other Input events.

Inherited From
Source code: gameobjects/components/Core.js (Line 259)
doc_phaser
2017-02-14 10:56:12
Comments
Leave a Comment

Please login to continue.