mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
Sync classref with changes from godotengine/godot#24640
This commit is contained in:
@@ -19,13 +19,13 @@ Custom generator of previews.
|
||||
Methods
|
||||
-------
|
||||
|
||||
+--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Texture<class_Texture>` | :ref:`generate<class_EditorResourcePreviewGenerator_generate>` **(** :ref:`Resource<class_Resource>` from, :ref:`Vector2<class_Vector2>` size **)** virtual |
|
||||
+--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Texture<class_Texture>` | :ref:`generate_from_path<class_EditorResourcePreviewGenerator_generate_from_path>` **(** :ref:`String<class_String>` path, :ref:`Vector2<class_Vector2>` size **)** virtual |
|
||||
+--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`handles<class_EditorResourcePreviewGenerator_handles>` **(** :ref:`String<class_String>` type **)** virtual |
|
||||
+--------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Texture<class_Texture>` | :ref:`generate<class_EditorResourcePreviewGenerator_method_generate>` **(** :ref:`Resource<class_Resource>` from, :ref:`Vector2<class_Vector2>` size **)** virtual |
|
||||
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`Texture<class_Texture>` | :ref:`generate_from_path<class_EditorResourcePreviewGenerator_method_generate_from_path>` **(** :ref:`String<class_String>` path, :ref:`Vector2<class_Vector2>` size **)** virtual |
|
||||
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
| :ref:`bool<class_bool>` | :ref:`handles<class_EditorResourcePreviewGenerator_method_handles>` **(** :ref:`String<class_String>` type **)** virtual |
|
||||
+-------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
|
||||
|
||||
Description
|
||||
-----------
|
||||
@@ -35,7 +35,7 @@ Custom code to generate previews. Please check "file_dialog/thumbnail_size" in E
|
||||
Method Descriptions
|
||||
-------------------
|
||||
|
||||
.. _class_EditorResourcePreviewGenerator_generate:
|
||||
.. _class_EditorResourcePreviewGenerator_method_generate:
|
||||
|
||||
- :ref:`Texture<class_Texture>` **generate** **(** :ref:`Resource<class_Resource>` from, :ref:`Vector2<class_Vector2>` size **)** virtual
|
||||
|
||||
@@ -45,17 +45,17 @@ Returning an empty texture is an OK way to fail and let another generator take c
|
||||
|
||||
Care must be taken because this function is always called from a thread (not the main thread).
|
||||
|
||||
.. _class_EditorResourcePreviewGenerator_generate_from_path:
|
||||
.. _class_EditorResourcePreviewGenerator_method_generate_from_path:
|
||||
|
||||
- :ref:`Texture<class_Texture>` **generate_from_path** **(** :ref:`String<class_String>` path, :ref:`Vector2<class_Vector2>` size **)** virtual
|
||||
|
||||
Generate a preview directly from a path with the specified size. Implementing this is optional, as default code will load and call :ref:`generate<class_EditorResourcePreviewGenerator_generate>`.
|
||||
Generate a preview directly from a path with the specified size. Implementing this is optional, as default code will load and call :ref:`generate<class_EditorResourcePreviewGenerator_method_generate>`.
|
||||
|
||||
Returning an empty texture 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).
|
||||
|
||||
.. _class_EditorResourcePreviewGenerator_handles:
|
||||
.. _class_EditorResourcePreviewGenerator_method_handles:
|
||||
|
||||
- :ref:`bool<class_bool>` **handles** **(** :ref:`String<class_String>` type **)** virtual
|
||||
|
||||
|
||||
Reference in New Issue
Block a user