object.particleMaxCount

Type Number
Object ParticleSystem
Library physics.*
Revision Release 2024.3703
Keywords particleMaxCount, physics, LiquidFun
See also physics.newParticleSystem()

Overview

This numerical property controls the maximum number of particles. This value is 0 by default, indicating no maximum limit.

Example

local particleSystem = physics.newParticleSystem(
    {
        filename = "particle.png",
        radius = 2
    }
)

particleSystem.particleMaxCount = 4096