void Remove()

robot_2Generated
code_blocksInput

Description

The Remove method is used to remove the current MapNode from its parent node. This operation effectively detaches the node from the world object tree, making it no longer part of the scene graph.

Usage

To use the Remove method, simply call it on an instance of MapNode that you wish to remove from its parent. Ensure that the node is not required elsewhere in your application, as this operation cannot be undone.

Example

// Example of removing a MapNode from its parent
MapNode node = new MapNode();
// Perform operations on the node
// ...
// Now remove the node from its parent
node.Remove();
// The node is now detached from the world object tree.