In tool mode, is there a way to add new nodes?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By avencherus
:warning: Old Version Published before Godot 3 was released.

Adding a child doesn’t really add anything to the scene.

I was looking at EditorSelection, but it’s not too clear to me how to make use of it, or if it will actually add nodes into the scene that can be saved or edited.

:bust_in_silhouette: Reply From: Zylann

I think you have to set the owner of the nodes you create:
new_node.set_owner(get_tree().get_edited_scene_root())

Indeed. Thanks very much, I don’t think I would’ve stumbled across that. :slight_smile:

avencherus | 2016-11-04 21:09