Api Editor MapDoc MapNode
class

MapNode

public class MapNode

A common class used for all objects in the world object tree.

Properties

Name Type Description
Name String User specified name of this node
TypeString String Native C++ type name for this map node (nice for debug, might disappear at some point)
Position Vector3 World position of this map node.
Angles Angles Euler angles of this map node.
Scale Vector3 Non-uniform scalar for this map node.
Parent MapNode The parent node, at the top level this will be the MapWorld
Children IEnumerable<MapNode> Each MapNode can have many children. Children usually transform with their parents, etc.
Visible Boolean Visibility of this MapNode, e.g if it's been hidden by the user
World MapWorld The world this map node belongs to.
GeneratesEntityModelGeometry Boolean Does this map node generate models to use?

Methods

MapNode Copy()

Creates a copy of this map node.

Void Remove()
Assembly: Sandbox.Tools Namespace: Editor.MapDoc Full Name: Editor.MapDoc.MapNode