Skip to content

Commit

Permalink
Mentioning the GDExtension icon support
Browse files Browse the repository at this point in the history
Node that is loaded through GDExtension can have a custom icon. Icon's path can be added via gdextension file.
(See godotengine/godot#75472).

Commit makes a mention of this in the C++ tutorial.
  • Loading branch information
Jackerty committed Jun 3, 2023
1 parent 830c425 commit ff5f422
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tutorials/scripting/gdextension/gdextension_cpp_example.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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. The custom icon can be
added via the ``gdextension`` file. Write a line where the name of the node
class equals the resource path to the icon's SVG file.

For example:

.. code-block:: none
[Icon]
GDExample = "res://icons/GDExample.svg"
Path points to 16 by 16 pixel SVG image. Read the guide for :ref:`creating icons <doc_editor_icons>`
for more information.

Adding properties
-----------------

Expand Down

0 comments on commit ff5f422

Please sign in to comment.