Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mentioning the GDExtension icon support #7461

Merged
merged 1 commit into from
Jul 18, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 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
-----------------

Expand Down