Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


Clear

Remove all particles in the Particle System.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.ParticleSystemModule

Clear(bool)

Remove all particles in the Particle System.
public void Clear(bool withChildren)

Parameters

withChildren

Clear all child Particle Systems as well.

Remarks

This method also removes the particles from any linked sub-emitters. Use the withChildren parameter to remove particles from child Particle Systems that are not sub-emitters of the system.

Clear()

Remove all particles in the Particle System.
public void Clear()

Remarks

This method also removes the particles from any linked sub-emitters. Use the withChildren parameter to remove particles from child Particle Systems that are not sub-emitters of the system.