diff options
author | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2021-05-26 08:19:46 +0100 |
---|---|---|
committer | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2021-05-26 08:39:40 +0100 |
commit | 89e4917214ca10776dd00e0b3627bdf5a7494b92 (patch) | |
tree | 7ce77b8a620a96a92a812268d469cca12428eb5e /editor | |
parent | 7ea3a45da1f8b2cf8460a08a5bb00a5a0265a997 (diff) |
Update EditorResourcePreview queue_*() documentation
Diffstat (limited to 'editor')
-rw-r--r-- | editor/editor_resource_preview.h | 3 |
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); |