class MapNode

robot_2Generated
code_blocksInput

Description

The MapNode class is a fundamental component used to represent objects within the world object tree in the s&box editor. It provides properties and methods to manage the node's position, orientation, and hierarchy within the map structure.

Members

Instance Properties

Member NameSummary
NameUser specified name of this node
TypeStringNative C++ type name for this map node (nice for debug, might disappear at some point)
PositionWorld position of this map node.
AnglesEuler angles of this map node.
ScaleNon-uniform scalar for this map node.
ParentThe parent node, at the top level this will be the MapWorld
ChildrenEach MapNode can have many children. Children usually transform with their parents, etc.
VisibleVisibility of this MapNode, e.g if it's been hidden by the user
WorldThe world this map node belongs to.
GeneratesEntityModelGeometryDoes this map node generate models to use?

Instance Methods

Member NameSummary
CopyCreates a copy of this map node.
RemoveRemoves this map node from its parent.