C4 Engine
C4 Engine API Documentation

Node::SetController

Defined in:  C4Node.h
Sets a node's controller.
Prototype

void SetController(Controller *controller);

Parameters
controller A pointer to the controller. This can be nullptr.
Description
The SetController function assigns a controller to a node. If the node already has a different controller assigned to it, then that controller is removed and becomes unassigned, but it is not destroyed.
See Also

Controller

Node::GetController