Mentioning the GDExtension icon support

A node that is loaded through GDExtension can have a custom icon. Icon's path can be added via the `gdextension` file.
(See https://github.com/godotengine/godot/pull/75472).

Commit makes a mention of this in the C++ tutorial.
This commit is contained in:
Jackerty
2023-06-03 14:30:51 +03:00
parent 5a0916e5ac
commit 1487caec8d

View File

@@ -421,6 +421,22 @@ We're finally ready to run the project:
.. image:: img/gdextension_cpp_animated.gif
Custom editor icon
------------------
By default, Godot uses the node icon in the scene dock for GDExtension nodes. The custom icon can be
added via the ``gdextension`` file. The node's icon is set by reference to its name and resource path
of an SVG file.
For example:
.. code-block:: none
[Icon]
GDExample = "res://icons/GDExample.svg"
The path should point to a 16 by 16 pixel SVG image. Read the guide for :ref:`creating icons <doc_editor_icons>`
for more information.
Adding properties
-----------------