Optional
dynamicSpecifies which particle properties should update each frame. Set properties to true for per-frame updates, false for static values.
Optional
particlesInitial array of particles to add to the container. All particles must share the same base texture.
Optional
roundWhen true, particle positions are rounded to the nearest pixel. Helps achieve crisp rendering at the cost of smooth motion.
Optional
Advanced
shaderCustom shader for rendering particles. Allows for custom visual effects.
Optional
textureThe texture used for all particles in this container. If not provided, uses the texture of the first particle added.
Options for configuring a ParticleContainer. Controls how particles are rendered, updated, and managed.
Example
See