|Topic was automatically imported from the old Question2Answer platform.
I am trying to make an plugin that automatically adds nodes to a batch of nodes
for block in get_tree().get_edited_scene_root().get_children():
var tile = Spatial.new()
the problem is, this code creates the node but does’t appear in the tree in the editor. In addition to that, if i close this scene that had nodes instanced by my editor plugin, it won’t save the instanced nodes.
unless i misunderstood something about editor plugins, i should have been able to instance node from an plugin right? if yes, is there an addional procedure besides new add_child ?