summaryrefslogtreecommitdiffstats
path: root/core/io/resource.h
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2023-08-05 02:07:16 +0200
committerkobewi <kobewi4e@gmail.com>2023-11-10 00:43:30 +0100
commita3627b6e37049ca55cc0d5227a4ff7bc1b19ae1e (patch)
tree86e7bf3fe77bc14aac3e4c36717940fa1da02332 /core/io/resource.h
parent9df6491853b7b043afba3c6d56f4c5b21ac7fd7c (diff)
downloadredot-engine-a3627b6e37049ca55cc0d5227a4ff7bc1b19ae1e.tar.gz
Assign temporary path to preloaded resources
Diffstat (limited to 'core/io/resource.h')
-rw-r--r--core/io/resource.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/io/resource.h b/core/io/resource.h
index a9b1a88f6b..610c2150db 100644
--- a/core/io/resource.h
+++ b/core/io/resource.h
@@ -103,6 +103,7 @@ public:
virtual void set_path(const String &p_path, bool p_take_over = false);
String get_path() const;
+ void set_path_cache(const String &p_path); // Set raw path without involving resource cache.
_FORCE_INLINE_ bool is_built_in() const { return path_cache.is_empty() || path_cache.contains("::") || path_cache.begins_with("local://"); }
static String generate_scene_unique_id();