summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRobin Arys <robin@blueoniongames.com>2021-11-07 18:47:53 +0100
committerRĂ©mi Verschelde <remi@verschelde.fr>2022-07-31 14:04:11 +0200
commit1cfe3c3f8bd5c600e19926427c4b9c1426475edb (patch)
treee8573844e07e44dd54c054a7c5222807ccd997e1 /doc/classes
parent475592a3bc2d2150dcbd9179fff653e3c55505a1 (diff)
Expose load_threaded_request's cachemode to GDScript
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/ResourceLoader.xml2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/classes/ResourceLoader.xml b/doc/classes/ResourceLoader.xml
index dd52d09750..729058c9b3 100644
--- a/doc/classes/ResourceLoader.xml
+++ b/doc/classes/ResourceLoader.xml
@@ -95,8 +95,10 @@
<argument index="0" name="path" type="String" />
<argument index="1" name="type_hint" type="String" default="&quot;&quot;" />
<argument index="2" name="use_sub_threads" type="bool" default="false" />
+ <argument index="3" name="cache_mode" type="int" enum="ResourceLoader.CacheMode" default="1" />
<description>
Loads the resource using threads. If [code]use_sub_threads[/code] is [code]true[/code], multiple threads will be used to load the resource, which makes loading faster, but may affect the main thread (and thus cause game slowdowns).
+ The [code]cache_mode[/code] property defines whether and how the cache should be used or updated when loading the resource. See [enum CacheMode] for details.
</description>
</method>
<method name="remove_resource_format_loader">