Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

SetParticles(particles: Particle[], size: int): void;
void SetParticles(Particle[] particles, int size);
def SetParticles(particles as Particle[], size as int) as void

Description

Set the particles of this particle system. size is the number of particles that is set.

Setting the lifetime of a particle to a negative value will result in Shuriken removing the particle. See Also: GetParticles.