ParticleSystem DisposeEmitter Method (Int32)Delta Engine Documentation

Namespace: DeltaEngine.Rendering3D.Particles
Assembly: DeltaEngine.Rendering3D.Particles (in DeltaEngine.Rendering3D.Particles.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void DisposeEmitter(
	int indexOfEmitter
)
Remarks

Tests: DeltaEngine.Rendering3D.Particles.Tests.ParticleSystemTests
Examples

1 unit tests call DeltaEngine.Rendering3D.Particles.ParticleSystem.DisposeEmitter(System.Int32)
[Test, CloseAfterFirstFrame]
public void DisposeEmitterDeactivates()
{
    var emitterAlpha = CreateAndAttachEmitter(Vector3D.Zero);
    var emitterBeta = CreateAndAttachEmitter(Vector3D.UnitY);
    particleSystem.DisposeEmitter(1);
    particleSystem.DisposeEmitter(emitterAlpha);
    particleSystem.DisposeEmitter(emitterAlpha);
    Assert.IsFalse(emitterAlpha.IsActive);
    Assert.IsFalse(emitterBeta.IsActive);
    Assert.AreEqual(0, particleSystem.AttachedEmitters.Count);
}
See Also