Skip to content

ParticlePresets

const ParticlePresets: object

Defined in: particles/src/presets.ts:30

Preset emitter configurations. Each works with no arguments, rendering a built-in shape; pass a texture or asset key to use your own art instead.

The returned config already carries a texture source, so overriding the source by spreading is a type error — pass it as the argument. Spreading to override anything else (rate, tint, lifetime, …) works.

readonly fire(textureOrKey?): EmitterConfig

Upward fire effect with fading and shrinking.

TextureInput

EmitterConfig

readonly rain(textureOrKey?): EmitterConfig

Downward rain drops.

TextureInput

EmitterConfig

readonly smoke(textureOrKey?): EmitterConfig

Slow-rising smoke effect.

TextureInput

EmitterConfig

readonly sparks(textureOrKey?): EmitterConfig

Fast directional sparks.

TextureInput

EmitterConfig