0 votes

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.

in Engine by (5,232 points)

1 Answer

+8 votes
Best answer

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

by (28,735 points)
selected by

Indeed. Thanks very much, I don't think I would've stumbled across that. ^_^

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.