diff --git a/tutorials/scripting/gdextension/gdextension_cpp_example.rst b/tutorials/scripting/gdextension/gdextension_cpp_example.rst index 54ef0f55b9cb..fae3fc9b834e 100644 --- a/tutorials/scripting/gdextension/gdextension_cpp_example.rst +++ b/tutorials/scripting/gdextension/gdextension_cpp_example.rst @@ -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 ` +for more information. + Adding properties -----------------