文档

Unity Engine

Unity Engine

IsAlive

Does the Particle System contain any live particles, or will it produce more?
阅读时间1 分钟最后更新于 1 个月前

Definition

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

IsAlive(bool)

Does the Particle System contain any live particles, or will it produce more?
public bool IsAlive(bool withChildren)

Parameters

withChildren

Check all child Particle Systems as well.

Returns

Type

Description

boolTrue if the Particle System contains live particles or is still creating new particles. False if the Particle System has stopped emitting particles and all particles are dead.

IsAlive()

Does the Particle System contain any live particles, or will it produce more?
public bool IsAlive()

Returns

Type

Description

boolTrue if the Particle System contains live particles or is still creating new particles. False if the Particle System has stopped emitting particles and all particles are dead.