Phaser API Documentation

  Version: 
EmitterOpOnUpdateCallback(particle, key, t, value)

Description:

The returned value updates the property for the duration of the particle's life.

Parameters:

name type description
particle Phaser.GameObjects.Particles.Particle

The particle.

key string

The name of the property.

t number

The normalized lifetime of the particle, between 0 (start) and 1 (end).

value number

The current value of the property.

Type:
function
Returns:
Description:

The new value of the property.

Type:
  • number