mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Renamed EditorResourcePreviewGenerator.should_generate_small_preview() to generate_small_preview_automatically()
Added can_generate_small_preview() so the generator uses generate() or generate_from_path() if it returns true Added can_generate_small_preview() and generate_small_preview_automatically() to the scripting languages
This commit is contained in:
@@ -9,6 +9,14 @@
|
||||
<tutorials>
|
||||
</tutorials>
|
||||
<methods>
|
||||
<method name="can_generate_small_preview" qualifiers="virtual">
|
||||
<return type="bool">
|
||||
</return>
|
||||
<description>
|
||||
If this function returns true the generator will call [method generate] or [method generate_from_path] for small previews too.
|
||||
By default it returns false.
|
||||
</description>
|
||||
</method>
|
||||
<method name="generate" qualifiers="virtual">
|
||||
<return type="Texture">
|
||||
</return>
|
||||
@@ -35,6 +43,14 @@
|
||||
Care must be taken because this function is always called from a thread (not the main thread).
|
||||
</description>
|
||||
</method>
|
||||
<method name="generate_small_preview_automatically" qualifiers="virtual">
|
||||
<return type="bool">
|
||||
</return>
|
||||
<description>
|
||||
If this function returns true the generator will automatically generate the small previews from the normal preview texture generated by the methods [method generate] or [method generate_from_path].
|
||||
By default it returns false.
|
||||
</description>
|
||||
</method>
|
||||
<method name="handles" qualifiers="virtual">
|
||||
<return type="bool">
|
||||
</return>
|
||||
|
||||
Reference in New Issue
Block a user