Function Node.getPathTo

Returns the relative NodePath from this node to the specified node. Both nodes must be in the same scene or the function will fail.

NodePath getPathTo (
  Node node
) nothrow @nogc const;