1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-14 13:41:12 +00:00

Autoloads with UIDs

This commit is contained in:
Aditya Raj
2025-10-30 15:58:32 +05:30
parent 7864ac8019
commit d940614595
3 changed files with 9 additions and 9 deletions

View File

@@ -76,7 +76,7 @@ void init_autoloads() {
// Cache the scene reference before loading it (for cyclic references)
Ref<PackedScene> scn;
scn.instantiate();
scn->set_path(info.path);
scn->set_path(ResourceUID::ensure_path(info.path));
scn->reload_from_file();
ERR_CONTINUE_MSG(scn.is_null(), vformat("Failed to instantiate an autoload, can't load from path: %s.", info.path));