Description
The Remove
method is a public instance method of the MapNode
class within the Editor.MapDoc
namespace. This method is used to remove the current MapNode
from its parent node or the world it belongs to. Once removed, the node will no longer be part of the map's hierarchy and will not be rendered or processed further.
Usage
To use the Remove
method, simply call it on an instance of MapNode
that you wish to remove from the map. Ensure that you have a valid instance of MapNode
and that it is part of a map hierarchy before calling this method.
Example
// Example of using the Remove method
// Assume 'node' is an instance of MapNode
MapNode node = new MapNode();
// Remove the node from its parent or world
node.Remove();
// After calling Remove, 'node' is no longer part of the map hierarchy.