如何解决脊柱网络播放器 - 无法加载骨架
美术团队提供了 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 举报,一经查实,本站将立刻删除。