diff options
author | Robin Arys <robin@blueoniongames.com> | 2021-11-07 18:47:53 +0100 |
---|---|---|
committer | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-07-31 14:04:11 +0200 |
commit | 1cfe3c3f8bd5c600e19926427c4b9c1426475edb (patch) | |
tree | e8573844e07e44dd54c054a7c5222807ccd997e1 /doc/classes | |
parent | 475592a3bc2d2150dcbd9179fff653e3c55505a1 (diff) |
Expose load_threaded_request's cachemode to GDScript
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/ResourceLoader.xml | 2 |
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="""" /> <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"> |