-
Notifications
You must be signed in to change notification settings - Fork 184
Open
Description
https://github.com/zfoo-project/godot-start/blob/main/doc/demo01_hello/5.node2d.md 的“自定义节点”的教程,在Godot4.1.1中并不适用。具体表现为:在脚本中编写自定义节点的相关代码时,出现了三处报错。
第一处是class_name MyNode, “res://icon.png”。MyNode后面不能有逗号,以及“res://icon.png”要移到下一行。
第二、三处是在两个export前面,目前export要在前面加@才能用。
2023.9.7 可能这只是个Godot3的教程,打扰了抱歉
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels