mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-05 22:09:56 +03:00
Fix description of adding class icon in 3.4
This commit is contained in:
@@ -1069,8 +1069,8 @@ Registering named classes
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
You can give your class a name to register it as a new type in Godot's
|
||||
editor. For that, you use the ``class_name`` keyword. You can optionally use
|
||||
the ``@icon`` annotation with a path to an image, to use it as an icon. Your
|
||||
editor. For that, you use the ``class_name`` keyword. You can optionally add
|
||||
a comma followed by a path to an image, to use it as an icon. Your
|
||||
class will then appear with its new icon in the editor::
|
||||
|
||||
# Item.gd
|
||||
|
||||
Reference in New Issue
Block a user