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

Live2DModel.from 中 onLoad 不触发 #156

Open
Flysky12138 opened this issue Jun 30, 2024 · 0 comments
Open

Live2DModel.from 中 onLoad 不触发 #156

Flysky12138 opened this issue Jun 30, 2024 · 0 comments

Comments

@Flysky12138
Copy link

model.current = await window.PIXI.live2d.Live2DModel.from(source, {
  onLoad() {
    console.log(1)
  },
  onError() {
    console.log(2)
  }
})

source 为远程地址,模型加载成功后 onLoad & onError 不会执行

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