0 votes

I want to do something like this:


func _ready():
    var node = preload("....").inctance()

But this code adds a node to root/EditorNode. So when I start the application, I do not see the node on the stage.

Is it possible to implement this feature?

So that you can create nods through edits automatically, and add them to the scene?

asked Jan 7 in Engine by Roket (48 points)
reshown Jan 7 by Roket

I believe you want something similar to this other question: https://godotengine.org/qa/15486/create-nodes-in-the-editor-from-script

1 Answer

0 votes

I think you need to set the owner of the instance for it to show:


answered Jan 8 by johnygames (1,841 points)
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.