Document importing SVG images with text

- Mention editor plugins and custom node icons should use the appropriate
  import options.
This commit is contained in:
Hugo Locurcio
2024-01-10 23:52:18 +01:00
parent f6d53d141e
commit e93fc9b1f2
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**