Interface: ParticleProperties
Defined in: node_modules/pixi.js/lib/scene/particle-container/shared/ParticleContainer.d.ts:45
Represents the properties of a particle that can be dynamically updated each frame. These properties control which aspects of particles are recalculated during rendering. Setting a property to true enables per-frame updates, while false only updates when manually triggered.
Example
// Create a particle container with dynamic position and rotation
const container = new ParticleContainer({
dynamicProperties: {
position: true, // Update positions each frame
rotation: true, // Update rotations each frame
vertex: false, // Static vertices
uvs: false, // Static texture coordinates
color: false // Static colors
}
});
// Create a fully dynamic particle container
const dynamicContainer = new ParticleContainer({
dynamicProperties: {
vertex: true, // Dynamic mesh deformation
position: true, // Dynamic movement
rotation: true, // Dynamic spinning
uvs: true, // Dynamic texture animation
color: true // Dynamic coloring
}
});
See
- ParticleContainer For the main particle container class
- ParticleContainerOptions For all container configuration options
Standard
Properties
color?
> optional color?: boolean
Defined in: node_modules/pixi.js/lib/scene/particle-container/shared/ParticleContainer.d.ts:75
When true, color values are updated each frame. Enables color transitions and alpha changes.
Default
false
position?
> optional position?: boolean
Defined in: node_modules/pixi.js/lib/scene/particle-container/shared/ParticleContainer.d.ts:57
When true, particle positions are updated each frame. Essential for moving particles.
Default
true
rotation?
> optional rotation?: boolean
Defined in: node_modules/pixi.js/lib/scene/particle-container/shared/ParticleContainer.d.ts:63
When true, rotation values are updated each frame. Needed for spinning particles.
Default
false
uvs?
> optional uvs?: boolean
Defined in: node_modules/pixi.js/lib/scene/particle-container/shared/ParticleContainer.d.ts:69
When true, texture coordinates are updated each frame. Required for texture animation.
Default
false
vertex?
> optional vertex?: boolean
Defined in: node_modules/pixi.js/lib/scene/particle-container/shared/ParticleContainer.d.ts:51
When true, vertex positions are updated each frame. Useful for mesh deformation effects.
Default
false