@@ -123,6 +123,14 @@ ResourceUID::ID ResourceLoader::get_resource_uid(const String &p_path) {
123
123
return ::ResourceLoader::get_resource_uid (p_path);
124
124
}
125
125
126
+ String ResourceLoader::get_resource_type (const String &p_path) {
127
+ return ::ResourceLoader::get_resource_type (p_path);
128
+ }
129
+
130
+ String ResourceLoader::get_resource_script_class (const String &p_path) {
131
+ return ::ResourceLoader::get_resource_script_class (p_path);
132
+ }
133
+
126
134
void ResourceLoader::_bind_methods () {
127
135
ClassDB::bind_method (D_METHOD (" load_threaded_request" , " path" , " type_hint" , " use_sub_threads" , " cache_mode" ), &ResourceLoader::load_threaded_request, DEFVAL (" " ), DEFVAL (false ), DEFVAL (CACHE_MODE_REUSE));
128
136
ClassDB::bind_method (D_METHOD (" load_threaded_get_status" , " path" , " progress" ), &ResourceLoader::load_threaded_get_status, DEFVAL (Array ()));
@@ -137,6 +145,8 @@ void ResourceLoader::_bind_methods() {
137
145
ClassDB::bind_method (D_METHOD (" has_cached" , " path" ), &ResourceLoader::has_cached);
138
146
ClassDB::bind_method (D_METHOD (" exists" , " path" , " type_hint" ), &ResourceLoader::exists, DEFVAL (" " ));
139
147
ClassDB::bind_method (D_METHOD (" get_resource_uid" , " path" ), &ResourceLoader::get_resource_uid);
148
+ ClassDB::bind_method (D_METHOD (" get_resource_type" , " path" ), &ResourceLoader::get_resource_type);
149
+ ClassDB::bind_method (D_METHOD (" get_resource_script_class" , " path" ), &ResourceLoader::get_resource_script_class);
140
150
141
151
BIND_ENUM_CONSTANT (THREAD_LOAD_INVALID_RESOURCE);
142
152
BIND_ENUM_CONSTANT (THREAD_LOAD_IN_PROGRESS);
0 commit comments