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

TypeError: Cannot read property 'load' of undefined #40

Open
SongBana opened this issue Dec 22, 2021 · 1 comment
Open

TypeError: Cannot read property 'load' of undefined #40

SongBana opened this issue Dec 22, 2021 · 1 comment

Comments

@SongBana
Copy link

淘宝小程序中使用 json格式 ,TypeError: Cannot read property 'load' of undefined

engine.resourceManager.load({ urls: [ "https://gw.alipayobjects.com/os/bmw-prod/b46be138-e48b-4957-8071-7229661aba53.json", "https://gw.alipayobjects.com/os/bmw-prod/6447fc36-db32-4834-9579-24fe33534f55.atlas" ], type: 'lottie' }).then((lottieEntity) => { rootEntity.addChild(lottieEntity); const lottie = lottieEntity.getComponent(LottieAnimation); lottie.isLooping = true; lottie.play(); });

@eyworldwide
Copy link
Member

Hi, 请提供一下 oasis-engine 和 @oasis-engine/lottie 的版本号。

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

2 participants