diff --git a/editor/editor_plugin.cpp b/editor/editor_plugin.cpp index 9e22a0ead6fa..4232eacd764b 100644 --- a/editor/editor_plugin.cpp +++ b/editor/editor_plugin.cpp @@ -62,7 +62,14 @@ void EditorPlugin::remove_custom_type(const String &p_type) { } void EditorPlugin::add_autoload_singleton(const String &p_name, const String &p_path) { - EditorNode::get_singleton()->get_project_settings()->get_autoload_settings()->autoload_add(p_name, p_path); + if (p_path.begins_with("res://")) { + EditorNode::get_singleton()->get_project_settings()->get_autoload_settings()->autoload_add(p_name, p_path); + } else { + const Ref