请遵循我们的官方 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