0 votes

When running the project, I want it to be able to update the tool script so that it can display changes, live in the editor. It seems like these are two separate environments that aren't aware of each other.

Basically I want the running game to update a dictionary, and while it's running, I want the tool editor to be able to access it and use that info to update what I'm seeing in the editor.

What should I use? A signal, resource, exported var, global var, singleton - I've tried lots, but am missing something big, or trying something impossible.

in Engine by (12 points)

where is your tool script located? Is it a node in the tree? is it a singleton? is it a plugin script?

It's a plugin, in the addons directory.

1 Answer

0 votes

as you said in your comment its a editorPlugin. So signals and exported vars wont work well. I would go with a singleton. Its easy accessible from everywhere.

Just ad a singleton onEnterTree with addautoloadsingleton


by (3,930 points)

Hi, thanks for that.
I'm having issues with it, but I'm not sure what part of the project is the problem. and since you can't step through plugin code, it's more of a mystery. I think I'll need to learn a bit more about plugins before diving into the deeper parts.

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.