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

远程加载 KTX 资源 加载远程的资源组和多个远程资源该怎么做? #56

Open
xyyVee opened this issue Mar 12, 2020 · 0 comments

Comments

@xyyVee
Copy link

xyyVee commented Mar 12, 2020

用 Egret 做的微信小游戏,因为刚入手学习不熟悉,基本上都是用 RES.getResByUrl('https://xxx.xxx.xxx.png') 加载服务器上的单个图片或者是接口返回的图片 url 地址,后来图片资源多了之后把default.res.json的地址放到了服务器上,通过在main.ts里用RES.loadConfig("default.res.json", "https://xxx.xxxx.xx/game/resource/"); 来加载资源组,但是随着功能增加图片增加,小游戏经常在微信端闪退,于是搜到了用ktx来减少内存的占用,看的是这篇教程,但是对于远程资源加载还是不懂,又没有具体的例子能帮我解决这个问题?

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