Open Caesar454905970 opened 1 month ago
Autoloads are not singletons, see here
You access them with the node path I believe
if this needs to be an autoload that's present in the scene then what @AThousandShips said should be used.
if this is meant to be a singleton in all sense of the word then those can be made
NOTE: there could possibly be a better way to do this, but this is the way I found that works.
like so
Singleton class somewhere in your project
In register_types.cpp
Singleton registration
Singleton cleanup
Godot version
4.3
godot-cpp version
4.3
System information
Window10 godot-cpp4.3
Issue description
ERROR: Failed to retrieve non-existent singleton 'GlobalEcgResObj'. at: (core/config/engine.cpp:294)
Steps to reproduce
Minimal reproduction project
Failed to GlobalEcgResObj singleton.