Skip to content

IEmitterParticle<DataType>

Base interface for particles used by the Emitter.

Extends

  • Particle

Type Parameters

DataType

DataType extends BaseParticleData = BaseParticleData

Type describing the data object stored on particles.

Properties

data

ts
data: DataType;

Particle data used by emitter behaviors.

See

BaseParticleData for the structure of the data.

Methods

onFetch()

ts
onFetch(): void;

Invoked when particle is fetched from pool.

Returns

void


onRecycle()

ts
onRecycle(): void;

Invoked when particle is returned to pool.

Returns

void