Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

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

ParticleEmitter.emit

Switch to Manual
public var emit: bool;

Description

Should particles be automatically emitted each frame?

	// Emit particles for 3 seconds
	particleEmitter.emit = true;
	yield WaitForSeconds(3);
	// Then stop
	particleEmitter.emit = false;