Can I access @export variables of autoload files from the editor?

Godot Version 4.4.1

Hello, I have a generic_manager.gd file, that I set as an autoload.
In this file I have a variable that I have exported with the keywork @export.

Now, I want to access this variable from the editor (as if it was a node) and drag and drop stuff in it. Can I do that?

You cannot do that by autoloading a script, however, you can autoload a scene, in which you can attach a script and change its exported variables.

1 Like

Is this considered a good practice?

Tbh I don’t like using autoload whether its for scripts or scenes, so I don’t really know what to tell you. But I don’t see why autoloading a scene would be a worse practice than autoloading a script, so you’re fine with scripts, feel free to also do it for scenes.

1 Like

thank you very much

1 Like