Art team provided 3 files (exported from spine 3.6) .json
.png
and .atlas
.
I cloned spine-runtimes and modified spine-ts/player/example/index.html
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<script src="../../build/spine-player.js"></script>
<link rel="stylesheet" href="../css/spine-player.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<style>
body {
background: gray;
margin: 0px;
}
</style>
<body>
<div id="container-raptor" style="width: 640px; height: 380px;"></div>
</body>
<script>
// Creates a new spine player with a transparent background,
// so content from the website shines through. Hides the controls.
new spine.SpinePlayer("container-raptor", {
jsonUrl: "assets/flower.json",
atlasUrl: "assets/flower.atlas",
showControls: false,
premultipliedAlpha: true,
backgroundColor: "#00000000",
alpha: true
});
</script>
</body>
</html>
When I load the page I get "Error: Could not load skeleton .json". I don't have a .skel
file. Art team say there isn't one. Anyway to get it to work without?
question from:
https://stackoverflow.com/questions/66062520/spine-web-player-could-not-load-skeleton 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…