ParticleContainer
Creates a ParticleContainer
A really fast version of the Container built solely for speed, so use when you need a lot of sprites or particles.
The tradeoff of the ParticleContainer is that most advanced functionality will not work. ParticleContainer implements the basic object transform (position, scale, rotation) and some advanced functionality like tint.
Other more advanced functionality like masking, filters, etc will not work on sprites in this batch.
Usage
Note: when working with thousands of components, it is much more performant to create & update the Pixi instances directly instead of through components
API
ParticleContainer Attributes
Name | Type | Default | Description |
---|---|---|---|
blend-mode |
| BLEND_MODES.NORMAL | The blend mode to be applied to the sprite. |
auto-resize | boolean | false | If true, container will automatically calculate and resize its bounds to include all children. |
max-size | number | 1500 | The maximum number of particles that can be drawn by the container. |
properties | object | undefined | The properties of children that should be uploaded to the gpu and applied. |
more props in Container Props and PIXI.ParticleContainer
ParticleContainer Events
Name | Type | Description |
---|---|---|
render | function | custom render function |
more events in Container Events