Merge pull request #8748 from Calinou/doc-importing-images-svg-text

Document importing SVG images with text
This commit is contained in:
Max Hilbrunner
2024-01-13 15:26:37 +01:00
committed by Max Hilbrunner
parent e57e1b40ae
commit 525328c0c3
3 changed files with 72 additions and 1 deletions

View File

@@ -211,6 +211,14 @@ don't have one, you can grab the default one from the engine and save it in your
`addons/my_custom_node` folder as `icon.png`, or use the default Godot logo
(`preload("res://icon.svg")`).
.. tip::
SVG images that are used as custom node icons should have the
**Editor > Scale With Editor Scale** and **Editor > Convert Icons With Editor Theme**
:ref:`import options <doc_importing_images_editor_import_options>` enabled. This allows
icons to follow the editor's scale and theming settings if the icons are designed with
the same color palette as Godot's own icons.
.. image:: img/making_plugins-custom_node_icon.png
Now, we need to add it as a custom type so it shows on the **Create New Node**