• RuntimesGodot
  • c#脚本中无法加载spine api,无法获取SpineSprite节点

godot 4.1.1 mono version
按照官方设置,无法加载spine-godot c# api,也无法获取SpineSprite节点
As per official setting.Unable to load “spine-godot c# api”.Unable to get "SpineSprite" node.

Related Discussions
...

这个可能是你使用的NuGet的包的问题,我也遇到了一样的问题
把c:\Users\用户名.nuget\packages\文件夹里godot开头的4个文件夹删掉;
再启动Godot项目,让他重新安装nuget包就可以了

    RavenMRK 非常感谢!!!!

    请遵循我们的官方 spin-godot 运行时指南中的说明。 其他一切都会导致您出现错误,并向我们提出我们无法回答的问题,因为您没有使用我们记录的设置。

    您可以在这里找到信息:
    https://esotericsoftware.com/spine-godot#C%23-Project-Setup

    您必须严格遵循这一点,否则您将引入官方的 Godot C# .dll,其中不包含 Spine API。

    我刚刚将 GDScript example-v4 Godot 项目移植到 Godot + C#。 您可以在那里看到完整的设置(并了解如何在 C# 中使用 spin-godot):
    https://github.com/EsotericSoftware/spine-runtimes/tree/4.1/spine-godot/example-v4-csharp

    Please follow the instructions in our official spine-godot Runtimes guide. Everything else will lead to errors on your end, and questions directed at us which we can't answer, because you are not using the setup we documented.

    You can find the info here:
    https://esotericsoftware.com/spine-godot#C%23-Project-Setup

    You must follow this exactly, or else you will pull in the official Godot C# .dlls, which do not contain the Spine APIs.

    I've justed ported the GDScript example-v4 Godot project to Godot + C#. You can see the full setup there (and see how spine-godot is used with C#):
    https://github.com/EsotericSoftware/spine-runtimes/tree/4.1/spine-godot/example-v4-csharp