HierarchyObjectTests ModifyPropertiesAlsoModifiesChildsHierarchy Method Delta Engine Documentation

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

public void ModifyPropertiesAlsoModifiesChildsHierarchy()
Examples

[Test]
public void ModifyPropertiesAlsoModifiesChildsHierarchy()
{
    hierarchyObject3D.Children[0].Add(new SimpleHierarchyObject3D());
    hierarchyObject3D.Position = Vector3D.One;
    Assert.AreEqual(hierarchyObject3D.Children[0].Children[0].Position, Vector3D.One);
}
See Also