0 votes

I am making this plugin that makes a volume out of a MeshInstance and then adds the resulting nose to the mesh as child. It worked out in the end, except for one problem.
The generated volume node doesn't show up in the scene tree. How are users going to edit it if they can't select it from the scene tree? How do you get it to appear?

asked Jun 14 in Engine by SIsilicon (1,940 points)

1 Answer

+1 vote
Best answer

you need to set owner to the new node, something like this.

new_node.owner = get_editor_interface().get_edited_scene_root()
answered Jun 14 by volzhs (7,855 points)
selected Jun 14 by SIsilicon

Thanks man! :-)

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.