ParticlePresets
constParticlePresets: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.
Type Declaration
Section titled “Type Declaration”fire()
Section titled “fire()”
readonlyfire(textureOrKey?):EmitterConfig
Upward fire effect with fading and shrinking.
Parameters
Section titled “Parameters”textureOrKey?
Section titled “textureOrKey?”TextureInput
Returns
Section titled “Returns”rain()
Section titled “rain()”
readonlyrain(textureOrKey?):EmitterConfig
Downward rain drops.
Parameters
Section titled “Parameters”textureOrKey?
Section titled “textureOrKey?”TextureInput
Returns
Section titled “Returns”smoke()
Section titled “smoke()”
readonlysmoke(textureOrKey?):EmitterConfig
Slow-rising smoke effect.
Parameters
Section titled “Parameters”textureOrKey?
Section titled “textureOrKey?”TextureInput
Returns
Section titled “Returns”sparks()
Section titled “sparks()”
readonlysparks(textureOrKey?):EmitterConfig
Fast directional sparks.
Parameters
Section titled “Parameters”textureOrKey?
Section titled “textureOrKey?”TextureInput