C4 Engine
C4 Engine API Documentation

Node::SetObject

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

void SetObject(Object *object);

Parameters
object A pointer to the object to which the node should refer. This can be nullptr.
Description
The SetObject function sets the primary object referenced by a node. If the node previously referenced a different object, then that reference is released, causing the destruction of the old object if its reference count reaches zero. The reference count of the new object (if object is not nullptr) is incremented by one.
See Also

Node::GetObject

Object