natiny_particles_set_rate

C
void natiny_particles_set_rate(NatinyParticles particles, float per_second);

Sets how many particles are spawned per second while the system is emitting.

Parameters

Name Type Description
particles NatinyParticles Particle system handle from natiny_particles_create
per_second float Particles per second; 0 spawns none

Example

C
natiny_particles_set_rate(rain, 400.0f);