+1 vote

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!

in Engine by (13 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.
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.