Macros 如何声明要在编辑器对话框中显示的图标?

Macros 如何声明要在编辑器对话框中显示的图标?,macros,icons,godot,gdscript,Macros,Icons,Godot,Gdscript,在x分钟内有一个learn GDscript,其中有一行代码,似乎是一个宏@图标(“path/to.png”),但在最新版本的Godot(v3.3.stable.mono.official)上不起作用: @图标最小示例 错误 您正在阅读Godot4.0的文档(查看url,您想要的是“稳定”而不是“最新”)。另见 在Godot 3.x中,要指定脚本图标,请在class\u name语句中执行,如下所示: class_name Player, "res://icon.png"

在x分钟内有一个learn GDscript,其中有一行代码,似乎是一个宏
@图标(“path/to.png”)
,但在最新版本的Godot(v3.3.stable.mono.official)上不起作用:


@图标最小示例
错误
您正在阅读Godot4.0的文档(查看url,您想要的是“稳定”而不是“最新”)。另见

在Godot 3.x中,要指定脚本图标,请在
class\u name
语句中执行,如下所示:

class_name Player, "res://icon.png"

Parser Error: Parse error: Unexpected '@'
class_name Player, "res://icon.png"