object.particleCount

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

Overview

This read-only numerical property represents the number of particles alive.

Example

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

print( particleSystem.particleCount )