How to clone a Node and place it in another Node (by using code)?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By deepijatel

How to clone a Node and place it in another Node (by using code)?

:bust_in_silhouette: Reply From: vnmk8

to clone a node you create an instance of it then you add it as child of the the other node