new ParticlePropertyAnimator(propName, curve, scale)
Animates an arbitrary property on particles.
Parameters:
| Name | Type | Description |
|---|---|---|
propName |
String | The name of the property to animate. |
curve |
AnimationCurve | The animation curve that defines the animation. |
scale |
Number | A scalar by which to multiply the AnimationCurve. |
Methods
-
update(emitter, particle)
-
Called as part of the particle plugin lifecycle. Update is called every frame to update a particle.
Parameters:
Name Type Description emitterParticleEmitter The ParticleEmitter instance. particleParticle The particle to act on.