• Runtimes
  • Spine player 自定义 loading

Related Discussions
...

Spinebot showLoading 确实可以隐藏加载动画。但是并没有 onLoad 配置,4.2 中没有,你的链接 4.0 中也没有

@Misaki 能帮忙看一下吗?

  • Misaki відповіли на це.

    zangbianxuegu Sorry for the confusion Spinebot's response caused, please use the success callback, not "onLoad":

    new spine.SpinePlayer("player-container", {
        jsonUrl: "/files/path/mySkeleton.json",
        atlasUrl: "/files/path/mySkeleton.atlas",
        showLoading: false, 
        success: function (player) {
            console.log("The skeleton and its assets have been successfully loaded.");
        }
    });