Legacy Documentation: Version 4.6.2
Language: English
  • C#
  • JS
  • Boo

Script language

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

ParticleSystem.SetParticles

Switch to Manual
public function SetParticles(particles: Particle[], size: int): 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.