summaryrefslogtreecommitdiff
path: root/editor
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-05-26 11:01:07 +0200
committerGitHub <noreply@github.com>2021-05-26 11:01:07 +0200
commit517f1d7e677c3f3f28c6b9908a6b9f3f2982c13f (patch)
tree02a80a9141d1adc0e4512a6410da8a4656f3a4ad /editor
parent0b4b1f872cda045471e88f453118df4eb12796fa (diff)
parent89e4917214ca10776dd00e0b3627bdf5a7494b92 (diff)
Merge pull request #49094 from madmiraal/fix-docs-3977
Update EditorResourcePreview queue_*() documentation
Diffstat (limited to 'editor')
-rw-r--r--editor/editor_resource_preview.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/editor_resource_preview.h b/editor/editor_resource_preview.h
index c4e796dcf1..ffeb22162e 100644
--- a/editor/editor_resource_preview.h
+++ b/editor/editor_resource_preview.h
@@ -101,7 +101,8 @@ protected:
public:
static EditorResourcePreview *get_singleton();
- //callback function is callback(String p_path,Ref<Texture2D> preview,Variant udata) preview null if could not load
+ // p_receiver_func callback has signature (String p_path, Ref<Texture2D> p_preview, Ref<Texture2D> p_preview_small, Variant p_userdata)
+ // p_preview will be null if there was an error
void queue_resource_preview(const String &p_path, Object *p_receiver, const StringName &p_receiver_func, const Variant &p_userdata);
void queue_edited_resource_preview(const Ref<Resource> &p_res, Object *p_receiver, const StringName &p_receiver_func, const Variant &p_userdata);