Skip to content

Commit bc7f01e

Browse files
authored
Update making_plugins.rst
preload returns a resource which is not possible for @ICON. The change shows the exact line that has to be used to make it work.
1 parent 9fa8be1 commit bc7f01e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tutorials/plugins/editor/making_plugins.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ That's it for our basic button. You can save this as ``my_button.gd`` inside the
210210
plugin folder. You may have a 16×16 icon to show in the scene tree. If you
211211
don't have one, you can grab the default one from the engine and save it in your
212212
`addons/my_custom_node` folder as `icon.svg`, or use the default Godot logo
213-
(`preload("res://icon.svg")`).
213+
(`@icon("res://icon.svg")`).
214214

215215
.. tip::
216216

0 commit comments

Comments
 (0)