From 89e4917214ca10776dd00e0b3627bdf5a7494b92 Mon Sep 17 00:00:00 2001 From: Marcel Admiraal Date: Wed, 26 May 2021 08:19:46 +0100 Subject: Update EditorResourcePreview queue_*() documentation --- editor/editor_resource_preview.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'editor') 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 preview,Variant udata) preview null if could not load + // p_receiver_func callback has signature (String p_path, Ref p_preview, Ref 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 &p_res, Object *p_receiver, const StringName &p_receiver_func, const Variant &p_userdata); -- cgit v1.2.3