ParticleEmitter.ClearParticles Manual     Reference     Scripting  
Scripting > Runtime Classes > ParticleEmitter
ParticleEmitter.ClearParticles

function ClearParticles () : void

Description

Removes all particles from the particle system.

JavaScripts
particleEmitter.ClearParticles();

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
void Awake() {
particleEmitter.ClearParticles();
}
}

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Awake():
particleEmitter.ClearParticles()