Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用zip压缩包渲染不了模型,并且如何展示加载进度 #160

Open
Xiong-bit opened this issue Oct 22, 2024 · 0 comments
Open

Comments

@Xiong-bit
Copy link

Xiong-bit commented Oct 22, 2024

使用的框架为:next
node版本:16.3.0
示例代码:

 Live2DModel.from("/live2d/kei_basic_free.zip", {
      idleMotionGroup: "Idle",
      onLoad: () => {
        console.log("loaded");
      },
    }).then((model) => {
      // ....
      return () => {
        // window.removeEventListener("resize", resize);
        app.destroy(true, {
          children: true,
          texture: true,
          baseTexture: true,
        });
      };
    });

报错信息:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant