diff --git a/src/gameobjects/particles/ParticleEmitter.js b/src/gameobjects/particles/ParticleEmitter.js index fb9f19e74..e839dd15e 100644 --- a/src/gameobjects/particles/ParticleEmitter.js +++ b/src/gameobjects/particles/ParticleEmitter.js @@ -1730,6 +1730,21 @@ var ParticleEmitter = new Class({ return this; }, + /** + * Clear all Particle Death Zone from this Emitter. + * + * @method Phaser.GameObjects.Particles.ParticleEmitter#clearDeathZone + * @since 3.60.0 + * + * @return {this} This Particle Emitter. + */ + clearDeathZone: function () + { + this.deathZones.length = 0; + + return this; + }, + /** * Adds a new Particle Emission Zone to this Emitter. * @@ -1820,6 +1835,23 @@ var ParticleEmitter = new Class({ return this; }, + /** + * Clear all Particle Emission Zone from this Emitter. + * + * @method Phaser.GameObjects.Particles.ParticleEmitter#clearEmitZone + * @since 3.60.0 + * + * @return {this} This Particle Emitter. + */ + clearEmitZone: function () + { + this.emitZones.length = 0; + + this.zoneIndex = 0; + + return this; + }, + /** * Takes the given particle and sets its x/y coordinates to match the next available * emission zone, if any have been configured. This method is called automatically