diff options
author | Gilles Roudière <gilles.roudiere@gmail.com> | 2022-10-11 11:40:04 +0200 |
---|---|---|
committer | Gilles Roudière <gilles.roudiere@gmail.com> | 2022-10-11 12:35:27 +0200 |
commit | 8aa904f56c35a7211e44abe59d0f8949f789ec49 (patch) | |
tree | 19d82ff90336bc71bbe756b37a266ac62fe26794 /doc/classes | |
parent | 104af08e9d7c8308c2dd6cad89a0caee774043a0 (diff) | |
download | redot-engine-8aa904f56c35a7211e44abe59d0f8949f789ec49.tar.gz |
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" /> |