소스 검색

Merge pull request #5468 from timothyqiu/icon-annotation

Fix description of adding class icon in 3.4
Max Hilbrunner 3 년 전
부모
커밋
364325cb49
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      tutorials/scripting/gdscript/gdscript_basics.rst

+ 2 - 2
tutorials/scripting/gdscript/gdscript_basics.rst

@@ -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