Skip to main content

Class: TParticlesComponent

Defined in: components/particles-component.ts:57

A component is a data structure that describes a property of an entity.

Extends​

Constructors​

Constructor​

new TParticlesComponent(systemConfig): TParticlesComponent

Defined in: components/particles-component.ts:63

Parameters​

systemConfig​

TParticleSystemConfig

Returns​

TParticlesComponent

Overrides​

TComponent.constructor

Properties​

particles​

particles: TParticle[] = []

Defined in: components/particles-component.ts:58


paused​

paused: boolean = false

Defined in: components/particles-component.ts:61


systemConfig​

systemConfig: TParticleSystemConfig

Defined in: components/particles-component.ts:63


timeSinceLastEmit​

timeSinceLastEmit: number = 0

Defined in: components/particles-component.ts:60


requiredComponents?​

readonly static optional requiredComponents?: TComponentConstructor<TComponent>[]

Defined in: core/component.ts:9

The components that are required by this component. If the entity doesn't have any of the components, they will be created with default values.

Inherited from​

TComponent.requiredComponents