github_url: | hide |
---|
Inherits: :ref:`Node<class_Node>` < :ref:`Object<class_Object>`
Helper to generate previews of resources or files.
This object is used to generate previews for resources of files.
Emitted if a preview was invalidated (changed). path
corresponds to the path of the preview.
Create an own, custom preview generator.
Check if the resource changed, if so, it will be invalidated and the corresponding signal emitted.
Queue a resource being edited for preview (using an instance). Once the preview is ready, your receiver.receiver_func will be called either containing the preview texture or an empty texture (if no preview was possible). Callback must have the format: (path,texture,userdata). Userdata can be anything.
Queue a resource file for preview (using a path). Once the preview is ready, your receiver.receiver_func will be called either containing the preview texture or an empty texture (if no preview was possible). Callback must have the format: (path,texture,userdata). Userdata can be anything.
Removes a custom preview generator.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。