0 votes

Hello.

I'm trying to create an EditorPlugin using GDScript.
I've have been able to attach a new EditorProperty (a button) to the list of properties of a node, and to execute some code when clicked.

Now I was trying to open the default SceneTreeDialog (Node selector) when the button is clicked.

I have tried using SceneTreeDialog.new().show() but "new()" method is not valid for SceneTreeDialog.

I have been able to get an instance of SceneTreeEditor by navigating the editor SceneTree (successfully hiding and showing the SceneTreeDock).
But I don't know how, if possible, I can display the standard Node Selector modal from my plugin.

Thanks!

asked May 7 in Engine by fejnartal (12 points)

Please log in or register to answer this question.

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.