MapNodeclass
A common class used for all objects in the world object tree.
Methods2
Showing 2 methods
public Editor.MapDoc.MapNode Copy()
Creates a copy of this map node and its children, alongside it in the same parent - the same as cloning it in Hammer. The copy gets new node ids and is kept for undo, so call `Editor.MapEditor.History.MarkUndoPosition(System.String)` first. Returns null if the node can't be cloned.
public void Remove()
void—No results match this filter.
Properties12
Showing 12 properties
public System.Collections.Generic.IEnumerable`1<Editor.MapDoc.MapNode> Editor.MapDoc.MapNode.Children { get; set; }
Each MapNode can have many children. Children usually transform with their parents, etc.
public bool Editor.MapDoc.MapNode.GeneratesEntityModelGeometry { get; set; }
Does this map node generate models to use?
bool—public bool Editor.MapDoc.MapNode.IsSelected { get; set; }
Whether this node is part of the current selection.
bool—public string Editor.MapDoc.MapNode.Name { get; set; }
User specified name of this node
string—public int Editor.MapDoc.MapNode.NodeId { get; set; }
Hammer's id for this node - unique within its `Editor.MapDoc.MapWorld` and saved with the map. Find the node again with `Editor.MapDoc.MapWorld.FindNode(System.Int32)`.
int—public Editor.MapDoc.MapNode Editor.MapDoc.MapNode.Parent { get; set; }
The parent node, at the top level this will be the `Editor.MapDoc.MapWorld`
public string Editor.MapDoc.MapNode.TypeString { get; set; }
Native C++ type name for this map node (nice for debug, might disappear at some point)
string—public bool Editor.MapDoc.MapNode.Visible { get; set; }
Visibility of this MapNode, e.g if it's been hidden by the user
bool—No results match this filter.