Function Node.replaceBy

Replaces a node in a scene by the given one. Subscriptions that pass through this node will be lost.

void replaceBy (
  Node node,
  const(bool) keep_data = false
) nothrow @nogc;