-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GDScript fails to export variables properly from within a tool script, whenever a singleton is accessed within that script. #6886
Comments
Happens also in latest master branch. It is worth mentioning, disabling some parts of code while in editor, like using:
To disable any code that mentions the autoload singleton, that doesn't work too. "[Autoload name] identifier not found" |
As a workaround, I've been using:
for my singleton name 'global' |
@jandrewlong My current awkward workaround is to create child node with script that has "tool" keyword, which that script read export variables from parent object. That way changing parent's export variables will effectively change the child script through signals "setget" |
Duplicate of #4236 |
@Hinsbart can you reopen this (or should I make another issue?) because this is still affecting me on 3.1.1, and the workaround posted by @jandrewlong doesn't work for me |
New bug: #29492 |
Operating system or device - Godot version:
Windows 10 Pro - Godot 2.1.0.0
Issue description (what happened, and what was expected):
GDScript fails to export variables properly from a tool script, whenever a singleton is accessed within that script.
Extensive details and how to reproduce here: Export var bug when using singletons within a tool
The text was updated successfully, but these errors were encountered: