Axiom.Core.SceneNode.RemoveAndDestroyChild C# (CSharp) Метод

RemoveAndDestroyChild() публичный Метод

This method removes and destroys the child and all of its children.
Unlike removeChild, which removes a single named child from this node but does not destroy it, this method destroys the child and all of it's children.

Use this if you wish to recursively destroy a node as well as detaching it from it's parent. Note that any objects attached to the nodes will be detached but will not themselves be destroyed.

public RemoveAndDestroyChild ( SceneNode sceneNode ) : void
sceneNode SceneNode The node to remove and destroy
Результат void
		public virtual void RemoveAndDestroyChild( SceneNode sceneNode )
		{
			sceneNode.RemoveAndDestroyAllChildren();

			this.RemoveChild( sceneNode );
			sceneNode.Creator.DestroySceneNode( sceneNode );
		}

Same methods

SceneNode::RemoveAndDestroyChild ( String name ) : void