HierarchyEntity2D IsActive Property Delta Engine Documentation

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

public override bool IsActive { get; set; }

Property Value

Type: Boolean

Implements

HierarchyObject2D IsActive
Remarks

Tests: Breakout.Tests.BallTests
Examples

1 unit tests call DeltaEngine.Rendering2D.HierarchyEntity2D.IsActive
[Test, CloseAfterFirstFrame]
public void DisposeBall()
{
    var ball = Resolve<Ball>();
    Assert.IsTrue(ball.IsActive);
    ball.Dispose();
    Assert.IsFalse(ball.IsActive);
}
See Also