GPU Particles

self:get_amount

Client

Retrieves the number of particles emitted per cycle

Syntax

local amount = self:get_amount()

Parameters

No parameters are accepted by this function

Returns

TypeNameDescription
intamountNumber of particles

Examples

Get the particle amount
local entity = particle.gpu.create()

core.engine.print("info", entity:get_amount())

On this page