浏览代码

Mention the editor must be restarted for `class_name` icons to display (#5031)

* Mention the editor must be restarted for `class_name` icons to display
Hugo Locurcio 4 年之前
父节点
当前提交
de64c64c89
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      getting_started/step_by_step/scripting_continued.rst

+ 3 - 2
getting_started/step_by_step/scripting_continued.rst

@@ -399,8 +399,9 @@ directly.
 
 
 You can name a script and register it as a type in the editor with the
 You can name a script and register it as a type in the editor with the
 ``class_name`` keyword followed by the class's name. You may add a comma and an
 ``class_name`` keyword followed by the class's name. You may add a comma and an
-optional path to an image to use as an icon. You will then find your new type in
-the Node or Resource creation dialog.
+optional path to a PNG or SVG image to use as an icon (16×16 minimum, 32×32 recommended).
+You will then find your new type in the Node or Resource creation dialog.
+Note that the icon will only appear after restarting the editor.
 
 
 .. tabs::
 .. tabs::
  .. code-tab:: gdscript GDScript
  .. code-tab:: gdscript GDScript