Can't use EditorPlugin.add_autoload_singleton()
with a relative path
#78049
Labels
Milestone
EditorPlugin.add_autoload_singleton()
with a relative path
#78049
Godot version
4.0.3.stable
System information
Linux/X11
Issue description
when creating addons, i want to use relative paths so that things don't break if i (or another user) decides to rename and/or move the add-on's folder.
using relative paths with
add_autoload_singleton()
doesn't work because of an error when enabling the add-on.res://addons/my_plugin/plugin.gd
error message window when enabling the add-on
the add-on does not get disabled because of the error.
the error-free parts of the add-on still get activated, just the autoload doesn't get created.
Steps to reproduce
res://addons/my_plugin/my_autoload.gd
res://addons/my_plugin/plugin.gd
:Minimal reproduction project
add_autoload_singleton.zip
(13.9 KiByte download, 11.4 KiByte unzipped)
The text was updated successfully, but these errors were encountered: