Function: addParticleEmitterComponent()
addParticleEmitterComponent(
world,entity,options?):ParticleEmitterEcsComponent
Defined in: particles/components/particle-emitter-component.ts:23
Attaches a ParticleEmitterEcsComponent to entity.
Parameters
world
The ECS world entity belongs to.
entity
number
The entity to attach the component to.
options?
Partial<ParticleEmitterEcsComponent> = {}
Options for configuring the particle emitter.
Returns
The attached component, for further tuning or runtime changes.