From d94061459523ed03028ed5233b76565f345ce24e Mon Sep 17 00:00:00 2001 From: Aditya Raj Date: Thu, 30 Oct 2025 15:58:32 +0530 Subject: [PATCH] Autoloads with UIDs --- editor/settings/editor_autoload_settings.cpp | 14 +++++++------- main/main.cpp | 2 +- modules/gdscript/tests/gdscript_test_runner.cpp | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/editor/settings/editor_autoload_settings.cpp b/editor/settings/editor_autoload_settings.cpp index 37014cecd12..f4dc71802bf 100644 --- a/editor/settings/editor_autoload_settings.cpp +++ b/editor/settings/editor_autoload_settings.cpp @@ -395,14 +395,14 @@ Node *EditorAutoloadSettings::_create_autoload(const String &p_path) { scn.instantiate(); scn->set_path(p_path); scn->reload_from_file(); - ERR_FAIL_COND_V_MSG(scn.is_null(), nullptr, vformat("Failed to create an autoload, can't load from path: %s.", p_path)); + ERR_FAIL_COND_V_MSG(scn.is_null(), nullptr, vformat("Failed to create an autoload, can't load from UID or path: %s.", p_path)); if (scn.is_valid()) { n = scn->instantiate(); } } else { Ref res = ResourceLoader::load(p_path); - ERR_FAIL_COND_V_MSG(res.is_null(), nullptr, vformat("Failed to create an autoload, can't load from path: %s.", p_path)); + ERR_FAIL_COND_V_MSG(res.is_null(), nullptr, vformat("Failed to create an autoload, can't load from UID or path: %s.", p_path)); Ref