0 votes

I want to pull some info out of an active plugin's vars. (almost like a global but for the editor)

asked Jul 4, 2017 in Engine by JTJonny (526 points)

1 Answer

+1 vote
Best answer

You should be able to find it in the root\EditorNode


The types are EditorPlugins. If you don't know which it is, then it may be worth doing print statements in the plugin's ready code, or assigning it a name, and finding it by name.

Another alternative is inside the plugin code, you can assign a reference to it using self on any property of an object it deals with, or if there are globals that you are using.

answered Jul 4, 2017 by avencherus (4,522 points)
selected Jul 4, 2017 by JTJonny
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.