This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

I'm wanting to create a reference for a singleton to make calling plugin functions easier from a normal gdscript but I can't figure out how to make a reference of the plugin for the singleton.
get_path() returns /root/EditorNode/EditorPlugin for the EditorPlugin and /root/EditorNode/@@5/@@6/@@14/@@16/@@20/@@24/@@25/@@26/@@3617/@@3618/Node for the loaded scene added to the editor, are these paths always the same if the plugin is used in another project?

in Engine by (3,259 points)

1 Answer

0 votes
Best answer

A solution to this was to make a custom class tool script inheriting/extending GDScript.

extends GDScript
class_name PluginName
by (3,259 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 Frequently asked questions and 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 [email protected] with your username.