Phaser API Documentation

  Version: 
defaultEmit(particle, key, [value])

Description:

The returned value sets what the property will be at the START of the particles life, on emit.

Parameters:

name type arguments description
particle Phaser.GameObjects.Particles.Particle

The particle.

key string

The name of the property.

value number <optional>

The current value of the property.

Returns:
Description:

The new value of the property.

Type:
  • number
Since: 3.0.0