HierarchyEntity3D Remove Method (HierarchyObject3D)Delta Engine Documentation

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

public void Remove(
	HierarchyObject3D child
)

Implements

HierarchyObject3D Remove(HierarchyObject3D)
Remarks

Tests: CreepyTowers.Tests.Towers.TowerTests
Examples

1 unit tests call DeltaEngine.Rendering3D.HierarchyEntity3D.Remove(DeltaEngine.Entities.HierarchyObject3D)
[Test, CloseAfterFirstFrame]
public void DisposingTowerRemovesTowerEntity()
{
    var tower = new Tower(TowerType.Water, Vector3D.Zero);
    tower.Dispose();
    Assert.IsFalse(tower.IsActive);
}
See Also