- _previewReady
void _previewReady(StringArg0 arg0, Texture arg1, Texture arg2, long arg3, StringArg4 arg4, VariantArg5 arg5)
- addPreviewGenerator
void addPreviewGenerator(EditorResourcePreviewGenerator generator)
Create an own, custom preview generator.
- checkForInvalidation
void checkForInvalidation(StringArg0 path)
Check if the resource changed, if so it will be invalidated and the corresponding signal emitted.
- opAssign
EditorResourcePreview opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(EditorResourcePreview other)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
- queueEditedResourcePreview
void queueEditedResourcePreview(Resource resource, GodotObject receiver, StringArg2 receiver_func, VariantArg3 userdata)
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.
- queueResourcePreview
void queueResourcePreview(StringArg0 path, GodotObject receiver, StringArg2 receiver_func, VariantArg3 userdata)
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.
- removePreviewGenerator
void removePreviewGenerator(EditorResourcePreviewGenerator generator)
Remove a custom preview generator.
Helper to generate previews of resources or files.
This object is used to generate previews for resources of files.