Skip to content

ParticleContainer

Defined in: display/ParticleContainer.ts:37

The Container class extends the _Container class (which includes the Animated and Factory mixins) and implements the IContainer interface. It represents a container for PIXI.js display objects.

  • ParticleContainer

A extends Application = Application

new ParticleContainer<A>(config): ParticleContainer<A>

Defined in: display/ParticleContainer.ts:49

The constructor for the Container class.

Partial<ParticleContainerConfig> = {}

The configuration for the container.

ParticleContainer<A>

PIXIParticleContainer.constructor

__dill_pixel_method_binding_root: boolean = true

Defined in: display/ParticleContainer.ts:42


onDestroy: Signal<() => void>

Defined in: display/ParticleContainer.ts:41

IParticleContainer.onDestroy

get app(): A

Defined in: display/ParticleContainer.ts:62

Get the application instance.

A

IParticleContainer.app

added(): void

Defined in: display/ParticleContainer.ts:84

This method is called when the container is added to the stage. It is meant to be overridden by subclasses.

void

IParticleContainer.added


destroy(options?): void

Defined in: display/ParticleContainer.ts:86

Destroys this sprite renderable and optionally its texture.

DestroyOptions

Options parameter. A boolean will act as if all options have been set to that value

void

particleContainer.destroy();
particleContainer.destroy(true);
particleContainer.destroy({ texture: true, textureSource: true, children: true });

IParticleContainer.destroy

PIXIParticleContainer.destroy


removed(): void

Defined in: display/ParticleContainer.ts:94

void


resize(size?): void

Defined in: display/ParticleContainer.ts:77

Resize the container. This method is meant to be overridden by subclasses.

Size

void


update(ticker?): void

Defined in: display/ParticleContainer.ts:69

Update the container. This method is meant to be overridden by subclasses.

number | Ticker

void

IParticleContainer.update

PIXIParticleContainer.update