File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
tutorials/scripting/gdextension Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -421,6 +421,22 @@ We're finally ready to run the project:
421421
422422.. image :: img/gdextension_cpp_animated.gif
423423
424+ Custom editor icon
425+ ------------------
426+ By default, Godot uses the node icon in the scene dock for GDExtension nodes. The custom icon can be
427+ added via the ``gdextension `` file. The node's icon is set by reference to its name and resource path
428+ of an SVG file.
429+
430+ For example:
431+
432+ .. code-block :: none
433+
434+ [Icon]
435+ GDExample = "res://icons/GDExample.svg"
436+
437+ The path should point to a 16 by 16 pixel SVG image. Read the guide for :ref: `creating icons <doc_editor_icons >`
438+ for more information.
439+
424440Adding properties
425441-----------------
426442
You can’t perform that action at this time.
0 commit comments