file: ParticleComponent.aus

class: ParticleComponent

[21:7] extends: Component

Wraps FXGL's ParticleComponent, the component that drives a ParticleEmitter from an Entity. Attach to an entity that should emit particles centered on its position. The component automatically registers with the entity's GameWorld and renders particles independently of the entity's view (so moving the entity does not drag previously-emitted particles). Use onFinished to run a callback when the emitter exhausts its max-emissions limit (no-op for unbounded emitters).

Methods