object.particleMaxCount

Type Number
Object ParticleSystem
Library physics.*
Revision 2017.3179
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