SceneTests RemovingControlDeactivatesIt Method Delta Engine Documentation

Namespace: DeltaEngine.Scenes.Tests
Assembly: DeltaEngine.Scenes.Tests (in DeltaEngine.Scenes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void RemovingControlDeactivatesIt()
Examples

[Test, CloseAfterFirstFrame]
public void RemovingControlDeactivatesIt()
{
    var label = new Sprite(material, Rectangle.One) { IsActive = true };
    scene.Add(label);
    scene.Remove(label);
    Assert.IsFalse(label.IsActive);
}
See Also