As of the latest release of Godot Engine, there is no way to add an autoload during runtime, but it can only be added previously. Why?
There's a workaround, sure, by adding the scene as a child of the root, but it's tiresome to get it every time using get_tree().root.get_node("Autoload")
, instead of simply writing Autoload
.
Shouldn't such a feature be added into Godot 4, or is it already being added?
Edit: replaced $Autoload
with Autoload
, I just made a mistake writing it.