C4 Engine
C4 Engine API Documentation

Node::SetNodeName

Defined in:  C4Node.h
Sets the name of a node.
Prototype

void SetNodeName(const char *name);

Parameters
name The new node name. This cannot be nullptr.
Description
The SetNodeName function sets the name of a node to the string specified by the name parameter. If the node did not previously have a name, then a new property is created in which to store the name, and that property is attached to the node. There is no practical limit to the length of a node name.

To remove the name from a node, use the Node::GetProperty function to get the property having type kPropertyName, and delete it. Do not call SetNodeName with an empty string or nullptr.
See Also

Node::GetNodeName

Node::GetProperty