有一个场景的根节点的脚本是一个类. 现在, 只要我修改了这个脚本, 这个场景在再次加载时就会显示"已损坏",但是运行时没有任何问题. 更神奇的是, 一个编辑器里只会有一个因这个而损坏的场景. 如果我修改了另一个这样的脚本, 等我再次打开编辑器时, 这个场景会"已损坏",而上一次的"已损坏"的场景会恢复正常
这是控制台的提示
--- Debug adapter server started —
--- GDScript language server started on port 6005 —
scene/resources/resource_format_text.cpp:284 - res://code/stone.tscn:11 - Parse Error:
Failed loading resource: res://code/stone.tscn. Make sure resources have been imported by opening the project in the editor at least once.
Failed to instantiate scene state of “res://code/stone.tscn”, node count is 0. Make sure the PackedScene resource is valid.
Failed to instantiate scene state of “res://code/stone.tscn”, node count is 0. Make sure the PackedScene resource is valid.
有没有大佬知道是什么原因?