mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
Document importing SVG images with text
- Mention editor plugins and custom node icons should use the appropriate import options.
This commit is contained in:
@@ -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**
|
||||
|
||||
Reference in New Issue
Block a user