Skip to main content

Function: addParticleEmitterComponent()

addParticleEmitterComponent(world, entity, options?): ParticleEmitterEcsComponent

Defined in: particles/components/particle-emitter-component.ts:23

Attaches a ParticleEmitterEcsComponent to entity.

Parameters

world

EcsWorld

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

ParticleEmitterEcsComponent

The attached component, for further tuning or runtime changes.