Manage your cookie settings. You can enable or disable different types of cookies below. For more details, see our Privacy Policy.

ParticleEffect

1.5.0+

Wrapper around a particle effect resource.

For more information about how to create particle effects, have a look at the ParticleEffectManager class.

Note: Particle effects are per-engine, they can thus be shared by multiple scenes.

.maxCount: number 

Maximum number of particles.

.destroy() ⇒ void 

Destroy and free the particle effect memory.

It is best practice to set the particle effect variable to null after calling destroy to prevent accidental use:

1  particleEffect.destroy();
2  particleEffect = null;

Accessing the particle effect after destruction behaves like accessing an empty particle effect.

.toString() ⇒ string