Hey I'm pretty new to Spine, but I've gone through a bunch of tutorials and I am starting to get ready to jump into adding it to my projects. I'm currently familiar with Python, but I recently found Godot and seems to have similar syntax to Python, and am thinking of transferring over.
Does anyone have any feelings on how 4.0 or 4.1 Spine works with Godot?
jslaugh
4 months ago
- jslaugh
- 帖子: 4
Mario
We've started work on an official Godot plugin but that's still a bit away from release. There's a 3rd party spine-godot plugin, which ours is based on, as the author has generously donated it to us. You could give that a try in the meantime. But note that we are changing quite a few things around.
The original plugin: https://github.com/rayxuln/spine-runtime-for-godot
Ours can be found in the
The original plugin: https://github.com/rayxuln/spine-runtime-for-godot
Ours can be found in the
spine-godot
branch (based on spine-runtimes 4.0) on GitHub: https://github.com/EsotericSoftware/spine-runtimes/tree/spine-godot 4 months ago
-
Mario - 帖子: 3035
jslaugh
Thanks for the response! Before jumping into Godot, I realize there isn't much tutorials about Godot and Spine 2D runtimes. I think for now, I will continue to play with the trial version until I feel comfortable using it with Python. But I will check the forum once in a while to see what the progress is on an official Godot runtime release. Thanks!
4 months ago
- jslaugh
- 帖子: 4
T.Fly()
Looking forward to the official Godot support.
2 months ago
- T.Fly()
- 帖子: 6
Nate
We are making good progress with the Godot runtime lately. It's turning out very nice!
2 months ago
-
Nate - 帖子: 11861
jslaugh
That's great to hear! I ended up purchasing Spine Pro and have been using rayxuln's runtime. Is there a difference if I were to switch over to Esoteric's runtime?
2 months ago
- jslaugh
- 帖子: 4
Mario
Yes, they won't be compatible. You can follow the changes in the 4.2-beta branch. It's not ready for use in projects yet, but ready enough to play around with it and give feedback. V1 will try to cover all the basics as well as possible. V2 will the focus on things like AnimationPlayer support, possibly spatial support (currently it's only for canvas), and more.
2 months ago
-
Mario - 帖子: 3035
jslaugh
Sounds great! Keep me updated! I check in once in a while. I'm open to switching everything over once there is a stable official release, but I still love hearing about progress. Thank you for your dedication to this project.
2 months ago
- jslaugh
- 帖子: 4
Mario
I'll likely not post individual progress updates here. For that, have a look at the commits in the 4.2-beta branch. All commits related to Godot are prefixed with 
[godot]
: https://github.com/EsotericSoftware/spine-runtimes/commits/4.2-beta. Alternatively, you can follow my ramblings on Twitter, but we aware that I do not post exclusively about Spine stuff 
2 months ago
-
Mario - 帖子: 3035
tasco
Hey. I'm also following progress on Spine runtime for Godot. I just want to report that I can't build Web version. Emscripten throws some errors and warnings when compiling Spine runtime.
2 months ago
- tasco
- 帖子: 1
Ryusui
If it helps, Rayxuln's spine-module-for-godot (linked above) compiles for web with no issues (on my end, at least). I'll be using that while the official support spends some more time in the oven.
If there's one thing I really hope the official Godot support adds, it's an easier way to attach arbitrary Godot objects to Spine attachment slots. I mean, it works, I can use it, but it's really clumsy and unintuitive. (And undocumented, IIRC - I only figured out how it worked by looking at the code itself!)
If there's one thing I really hope the official Godot support adds, it's an easier way to attach arbitrary Godot objects to Spine attachment slots. I mean, it works, I can use it, but it's really clumsy and unintuitive. (And undocumented, IIRC - I only figured out how it worked by looking at the code itself!)
2 months ago
- Ryusui
- 帖子: 12
Mario
@tasco exports to non-desktop platforms, that's a big item on my todo list. I want to make sure everything else is good first.
@ryusui that's actually what I spent most of my time on
They way attaching other nodes is planned to work is like like this:
1. In the inspector for SpineSprite, you have a dedicated section where you can specify which node should be rendered before/after which slot. It's not using the standard array or dictionary inspector UI, but a custom UI with drop downs for slots and node paths.
2. In code, you will have setters to add/remove nodes from slots.
@ryusui that's actually what I spent most of my time on

1. In the inspector for SpineSprite, you have a dedicated section where you can specify which node should be rendered before/after which slot. It's not using the standard array or dictionary inspector UI, but a custom UI with drop downs for slots and node paths.
2. In code, you will have setters to add/remove nodes from slots.
2 months ago
-
Mario - 帖子: 3035
Mario
Actually, I just gave the WASM build a quick try, fixed the compilation error, build the export tempalte, and tada:
Screenshot 2022-04-19 at 13.54.12.png
您没有权限查看这个主题的附件。
2 months ago
-
Mario - 帖子: 3035
Mario
And now it's also compatible with Godot 4.x
https://github.com/EsotericSoftware/spine-runtimes/commit/ccc43a386404eadb8544ea6957ab6b558d330cc3

2 months ago
-
Mario - 帖子: 3035
mightymochigames
I noticed the spine-godot directory on github is gone. Is there still a way to try spine in godot?
1 month ago
- mightymochigames
- 帖子: 1
Nate
It's in the 4.2-beta branch:
https://github.com/EsotericSoftware/spine-runtimes/tree/4.2-beta/spine-godot
https://github.com/EsotericSoftware/spine-runtimes/tree/4.2-beta/spine-godot
1 month ago
-
Nate - 帖子: 11861
deezaster
It works almost perfectly. I am eagerly waiting for the "Export Templates".
1 month ago
-
deezaster - 帖子: 4
Mario
Can you elaborate on the "almost" part?
1 month ago
-
Mario - 帖子: 3035
deezaster
- In AnimationPlayer Node I click on "Add Track > Property Track", choose the SpineAnimationTrack, but i can't see the properties "animation_name" or "loop" (like used in example 08-animation-player)
- When I click on "Search Help" (Reference documentation in Script Tab), Godot crashes.
- The External Editor (Visual Studio code with godot-tools extension) cannot connect to the GDScript Language Server.
I build on my Mac with "./setup.sh 3.4".
- When I click on "Search Help" (Reference documentation in Script Tab), Godot crashes.
- The External Editor (Visual Studio code with godot-tools extension) cannot connect to the GDScript Language Server.
I build on my Mac with "./setup.sh 3.4".
1 month ago
-
deezaster - 帖子: 4
Mario
Cheers! Issues 2 and 3 are likely due to the fact, that the build generated by setup.bat/.sh is a minimal editor buildmwith many modules disabled. I do this so iteratiom times on recompiles while working on the code are minimal. When we publish editor builds, they'll have all the default modules that come with Godot. You can fix this locally if you remove all lines from custom.py and recompile the engine/editor via setup.sh/.bat (build.sh/.bat will not work, as setup.sh/.bat configures the build).
Issue 1 is a documentation problem
You don't want to create a track the SpineAnimatiomTrack in the animatiom editor, but the AnimationPlayer child of the track. Sadly, Godot's AnimationPlayer and editor don't allow custom track types, so this is a workaround. As a bonus you see the animation durations and names tho, which is MUCH better then only seeing a little diamond for a key.
Issue 1 is a documentation problem

1 month ago
-
Mario - 帖子: 3035
deezaster
Issue 3 "GDScript Language Server" solved!Mario 写道:Cheers! Issues 2 and 3 are likely due to the fact, that the build generated by setup.bat/.sh is a minimal editor buildmwith many modules disabled. I do this so iteratiom times on recompiles while working on the code are minimal. When we publish editor builds, they'll have all the default modules that come with Godot. You can fix this locally if you remove all lines from custom.py and recompile the engine/editor via setup.sh/.bat (build.sh/.bat will not work, as setup.sh/.bat configures the build).

Issue 2 "Search Help" NOT solved. Godot still crashes

CleanShot 2022-05-11 at <removed>
---
Unfortunately, your explanation did not help me. Perhaps I have expressed myself unclearly.Mario 写道:Issue 1 is a documentation problemYou don't want to create a track the SpineAnimatiomTrack in the animatiom editor, but the AnimationPlayer child of the track. Sadly, Godot's AnimationPlayer and editor don't allow custom track types, so this is a workaround. As a bonus you see the animation durations and names tho, which is MUCH better then only seeing a little diamond for a key.
How did you manage the following? animation_name and loop do not appear in the selection. I tried to enter the entries manually, but of course it doesn't work.
CleanShot 2022-05-11 at <removed>
Finally, in another AnimationPlayer, I want to put together the individual animations:
CleanShot 2022-05-11 at <removed>
您没有权限查看这个主题的附件。
1 month ago
-
deezaster - 帖子: 4
Mario
Look what objects are keyed in your second screenshot. It's the AnimationPlayers beneath the SpineAnimationTracks, not the SpineAnimationTracks.
1 month ago
-
Mario - 帖子: 3035
deezaster
Yabadabadoooh. I know what the problem is.Mario 写道:Look what objects are keyed in your second screenshot. It's the AnimationPlayers beneath the SpineAnimationTracks, not the SpineAnimationTracks.
When I add an AnimationPlayer for a SpineAnimationTrack, the display in the Animation Editor remains empty:
CleanShot 2022-05-12 at <removed>
I have to close the scene and open it again.
I discovered this by accident this morning. After I opened the project, all the entries I wanted were there.
CleanShot 2022-05-12 at <removed>
Is this a Godot problem?
您没有权限查看这个主题的附件。
1 month ago
-
deezaster - 帖子: 4
Ryusui
Not sure, but it is worth noting that Rayxuln's module has a similar problem where certain changes don't appear unless you close and reopen the scene.deezaster 写道:I have to close the scene and open it again.
Is this a Godot problem?
1 month ago
- Ryusui
- 帖子: 12
Mario
Depends on the Godot version. 3.4 has a bunch such issues (unrelated to the module). Imtried to work around some of them. 4.0 is a bit better in that regard, but not quite stable.
@deezaster, I should get to writing docs next week, so I can better illustrate how this is supposed to work.
@deezaster, I should get to writing docs next week, so I can better illustrate how this is supposed to work.
1 month ago
-
Mario - 帖子: 3035
回到 Runtimes
- 当前时区为 UTC