We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
用 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来减少内存的占用,看的是这篇教程,但是对于远程资源加载还是不懂,又没有具体的例子能帮我解决这个问题?
RES.getResByUrl('https://xxx.xxx.xxx.png')
default.res.json
main.ts
RES.loadConfig("default.res.json", "https://xxx.xxxx.xx/game/resource/");
The text was updated successfully, but these errors were encountered:
No branches or pull requests
用 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来减少内存的占用,看的是这篇教程,但是对于远程资源加载还是不懂,又没有具体的例子能帮我解决这个问题?The text was updated successfully, but these errors were encountered: