DEKI/ENGINE docs
manual api reference
deki-particles 0.40.1
Deki package reference
deki-particles

Modular particle emitter (gravity, drag, velocity, lifetime modifiers)

Repository: github.com/dekiengine/deki-particles · Latest release: 0.40.0 · Needs engine 0.40.0+ · Requires: deki-nodegraph, deki-rendering, deki-2d

Install with DekiEditor --packages-add deki-particles <project>, or from the Package Manager. The engine's own components and C++ API are in the Deki docs.

Shown in the editor as Particles.

Components

Component Category Description
ParticleEmitterComponent Particles Spawns and draws particles, following a particle graph asset.

Feature flags

Parts you can leave out of a build. A feature with a define is switched there; the rest are stripped with their components.

Feature Define Default
Particle Emitter DEKI_FEATURE_PARTICLE_EMITTER on

Component reference

ParticleEmitterComponent

Spawns and draws particles, following a particle graph asset.

Inspector name: Particle Emitter Component · Category: Particles · Type: DekiParticles::ParticleEmitterComponent

Property Type Default Constraints Description
sprite AssetRef (Sprite) "" Image drawn for each particle. A small, soft sprite hides the low particle counts a device can afford.
graph AssetRef (ParticleGraph) "" The particle graph asset, which is where emission, velocity, size and colour over lifetime are authored.
maxParticles int32 64 0 to 4096 Ceiling on particles alive at once. The pool is allocated once at this size, so it is a memory decision as much as a visual one.
playOnAwake bool true Start emitting as soon as the object comes alive. Off, something has to start it.
looping bool true Restart the effect when it finishes instead of stopping. Off, it plays once and goes quiet.
worldSpace bool true Leave particles where they were born when the emitter moves. Off, they travel with it, which suits a flame carried by a character and not smoke left behind one.
seed int32 0 0 to 2.14748e+09 Random seed. 0 gives a different pattern each run; any other value plays the same pattern every time, which a render test can compare.

Inherits sortingOrder, ignoreClip, pixelSnap, alphaMode from RendererComponent.

Changelog

0.40.0

Changed

  • minEngine 0.40.0: built against engine 0.40.0. A build of this package from before does not load and is rebuilt.

0.30.0

Changed

  • minEngine 0.30.0: built against engine 0.30.0. A build of this package from before does not load and is rebuilt.

Added

  • Particles carry their sprite's filter (QuadBlit::Source::filter), so a GPU draws them as the image's Filter says.
  • Particles carry their sprite's revision (QuadBlit::Source::revision), so a GPU drawing the 2D (deki-gl) uploads the sprite once, and the particle pass says it writes nothing into the frame buffer itself (RenderPass::WritesBuffer), so it costs nothing extra there.

Earlier releases: CHANGELOG.md.


Generated from the package's reflection data (engine 0.40.1). Property names are the keys used in scene files. Renames keep an alias (compatibility).