Skip to content

ParticleContainer

Defined in: display/ParticleContainer.ts:36

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

new ParticleContainer(config): ParticleContainer

Defined in: display/ParticleContainer.ts:45

The constructor for the Container class.

Partial<ParticleContainerConfig> = {}

The configuration for the container.

ParticleContainer

PIXIParticleContainer.constructor

__dill_pixel_method_binding_root: boolean = true

Defined in: display/ParticleContainer.ts:38


onDestroy: Signal<() => void>

Defined in: display/ParticleContainer.ts:37

IParticleContainer.onDestroy

get app(): Application

Defined in: display/ParticleContainer.ts:58

Get the application instance.

Application

IParticleContainer.app

added(): void

Defined in: display/ParticleContainer.ts:80

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:82

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:90

void


resize(size?): void

Defined in: display/ParticleContainer.ts:73

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

Size

void


update(ticker?): void

Defined in: display/ParticleContainer.ts:65

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

number | Ticker

void

IParticleContainer.update

PIXIParticleContainer.update