despawnParticles

View sourcedespawnParticles(world: World): void

Queues completed particle entities for despawning.

The query matches entities with EntityHandle and Timer and filters for Particle. For each match where Timer#completed is true, the system queues EntityCommands#despawn for that entity; the world removes it when the command queue is applied. The emitter plugin registers this cleanup function in the repeating Update schedule.

Parameters

NameDescriptionDefault
world

World containing particle entities and command queue.

—