文档

Unity Engine

Unity Engine

Clear

Remove all particles in the Particle System.
阅读时间1 分钟最后更新于 1 个月前

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.