Click or drag to resize
DigitalRuneParticleHelperIsAlive Method
Determines whether the specified particle system is alive.

Namespace: DigitalRune.Particles
Assembly: DigitalRune.Particles (in DigitalRune.Particles.dll) Version: 1.4.0.0 (1.4.1.14427)
Syntax
public static bool IsAlive(
	this ParticleSystem particleSystem
)

Parameters

particleSystem
Type: DigitalRune.ParticlesParticleSystem
The particle system.

Return Value

Type: Boolean
if the specified particle system is alive; otherwise, .

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type ParticleSystem. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Exceptions
ExceptionCondition
ArgumentNullExceptionparticleSystem is .
Remarks

This method checks if the NumberOfLivingParticles of the specified particle system or any of its child particle systems is greater than 0. If the particle system and all children do not have any "living" particles, this method returns .

Important note: This method returns if there are temporarily no living particles in the particle system. It can still happen that the particle system contains effectors that will add new particles in the future.

See Also