RemoveChild() protected method

Removes the specified node from the scene graph and the octree, optionally keeping it in the internal node list yet. For internal use.
Removes all of the node's child subtree from the octree, but children remain linked to parents.
protected RemoveChild ( Node child, bool removeFromInternalList ) : void
child Axiom.Core.Node
removeFromInternalList bool
return void
Exemplo n.º 1
0
        public void TestRecreationOfChildNodeAfterRemovalByReference()
        {
            Node node = new OctreeNode( this.fakeSceneManager );
            Node childNode = node.CreateChild( Name );

            node.RemoveChild( childNode );
            node.CreateChild( Name );
        }
Exemplo n.º 2
0
        public void TestReaddingOfChildNodeAfterRemovalByName()
        {
            Node node = new OctreeNode( this.fakeSceneManager );
            Node childNode = node.CreateChild( Name );

            node.RemoveChild( Name );
            node.AddChild( childNode );
        }