|
@@ -23,7 +23,7 @@
|
|
<param index="2" name="metadata" type="Dictionary" />
|
|
<param index="2" name="metadata" type="Dictionary" />
|
|
<description>
|
|
<description>
|
|
Generate a preview from a given resource with the specified size. This must always be implemented.
|
|
Generate a preview from a given resource with the specified size. This must always be implemented.
|
|
- Returning an empty texture is an OK way to fail and let another generator take care.
|
|
|
|
|
|
+ Returning [code]null[/code] is an OK way to fail and let another generator take care.
|
|
Care must be taken because this function is always called from a thread (not the main thread).
|
|
Care must be taken because this function is always called from a thread (not the main thread).
|
|
[param metadata] dictionary can be modified to store file-specific metadata that can be used in [method EditorResourceTooltipPlugin._make_tooltip_for_path] (like image size, sample length etc.).
|
|
[param metadata] dictionary can be modified to store file-specific metadata that can be used in [method EditorResourceTooltipPlugin._make_tooltip_for_path] (like image size, sample length etc.).
|
|
</description>
|
|
</description>
|
|
@@ -35,7 +35,7 @@
|
|
<param index="2" name="metadata" type="Dictionary" />
|
|
<param index="2" name="metadata" type="Dictionary" />
|
|
<description>
|
|
<description>
|
|
Generate a preview directly from a path with the specified size. Implementing this is optional, as default code will load and call [method _generate].
|
|
Generate a preview directly from a path with the specified size. Implementing this is optional, as default code will load and call [method _generate].
|
|
- Returning an empty texture is an OK way to fail and let another generator take care.
|
|
|
|
|
|
+ Returning [code]null[/code] is an OK way to fail and let another generator take care.
|
|
Care must be taken because this function is always called from a thread (not the main thread).
|
|
Care must be taken because this function is always called from a thread (not the main thread).
|
|
[param metadata] dictionary can be modified to store file-specific metadata that can be used in [method EditorResourceTooltipPlugin._make_tooltip_for_path] (like image size, sample length etc.).
|
|
[param metadata] dictionary can be modified to store file-specific metadata that can be used in [method EditorResourceTooltipPlugin._make_tooltip_for_path] (like image size, sample length etc.).
|
|
</description>
|
|
</description>
|