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

function ClearParticles () : void

Description

Removes all particles from the particle emitter.

JavaScript
particleEmitter.ClearParticles();

using UnityEngine;
using System.Collections;

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

import UnityEngine
import System.Collections

class example(MonoBehaviour):

def Example():
particleEmitter.ClearParticles()