问题描述
美术团队提供了 3 个文件(从 Spine 3.6 导出).json
.png
和 .atlas
。
我克隆了脊椎运行时并修改了 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>
当我加载页面时,我收到“错误:无法加载骨架 .json”。我没有 .skel
文件。艺术团队说没有。无论如何让它在没有的情况下工作?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)