diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2022-10-11 13:46:24 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2022-10-11 13:46:24 +0200 |
commit | 07b488e643dd0706ce6d4c92db851fdc84ec58e4 (patch) | |
tree | 129c8842de4dd18241cf118395736b6709f4b24f /doc/classes | |
parent | 6ad1a635ee19c6d263061cc661476cd94022de5b (diff) | |
parent | 8aa904f56c35a7211e44abe59d0f8949f789ec49 (diff) |
Merge pull request #67241 from groud/expose_resource_format_loader_recognize_path
Exposes ResourceFormatLoader.recognize_path to scripting
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/ResourceFormatLoader.xml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/doc/classes/ResourceFormatLoader.xml b/doc/classes/ResourceFormatLoader.xml index 9b8c8d4d9d..2b6376f2cd 100644 --- a/doc/classes/ResourceFormatLoader.xml +++ b/doc/classes/ResourceFormatLoader.xml @@ -71,6 +71,15 @@ The [param cache_mode] 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="_recognize_path" qualifiers="virtual const"> + <return type="bool" /> + <param index="0" name="path" type="String" /> + <param index="1" name="type" type="StringName" /> + <description> + Tells whether or not this loader should load a resource from its resource path for a given type. + If it is not implemented, the default behavior returns whether the path's extension is within the ones provided by [method _get_recognized_extensions], and if the type is within the ones provided by [method _get_resource_type]. + </description> + </method> <method name="_rename_dependencies" qualifiers="virtual const"> <return type="int" /> <param index="0" name="path" type="String" /> |