Hello, I am new to Spine and developing a simple webpage to show all the model and animation for debugging.
It just a simple webpage to loop all folder and put into the spine-player
. The version of Spine is v3.8
Most of the file is able to load and work perfectly.
But there have a model which is shared-skel is unable to load.
Here is the file structure:
characters
base.skel
chara_a.atlas
chara_a.png
chara_b.atlas
chara_b.png
chara_c.atlas
chara_c.png
...
...
...
animation
run
attack
idle
I viewed the all the files.
base.skel
is the skeleton file which the skins
including all the different characters and their accessories.For
example: chara_a/jacket
, chara_b/skirt_a
.
The files in animation
is unknown extension. It's not json file, I read the file in hex editor and find that it look
similar to the .skel
file. Some name is readable but other text is encoded.
The designer told me this is the standard of his previous company and use in many unity games, but he don't have the sourcecode of the unity project.
Then I try to load the files in spine-player
const player = spine.SpinePlayer("player-container", {
skelUrl: "character/base.skel",
atlasUrl: "character/chara_a.atlas",
skins: ["body", "head"],
// animation: "default",
error: (msg) => {
console.log(msg)
},
});
And I get the error message:
Region not found in altas: chara_b/chara_b (mesh attachment: chara_b)
Here are my questions:
1) Is it able to bypass the resource checking (like Spine Pro setting can hide the missing image
red shape) ?
2) How to load the external animation in Spine Pro Editor and the Spine Player? The animation parameter in SpinePlayer seems only support the animation name, not file
3) If not support, I think those unity project will edit the skel and merge the animation before it plays the animation. Is there some tutorial to do the similar things?
Thanks