项目构建那里能不勾的都不勾了,哪里有教程额外增加资源的吗
资源分包不是早都支持了吗
已经压缩过了,我是萌新,不知道怎么用远程服务器,哪里有教程吗
构建前在面板上填好【远程服务器地址】
![]()
构建好后。打开你的构建目录,找到wechatgame目录,里面有个res文件夹,把这个文件夹丢到【远程资源服务器】上。之后自己按需删除res文件夹里面的文件,或者你可以全部删除。
最好先备份一份哈
那有没有什么方法可以显示加载进度吗
使用Progress组件,使用加载函数即可获取进度
这个获取进度的地方能麻烦说说具体代码和获取到的是什么吗,我自己用的时候实现的效果好像并不正常
/**
!#en
Preloads the scene to reduces loading time. You can call this method at any time you want.
After calling this method, you still need to launch the scene by cc.director.loadScene.
It will be totally fine to call cc.director.loadScene at any time even if the preloading is not
yet finished, the scene will be launched after loaded automatically.
!#zh 预加载场景,你可以在任何时候调用这个方法。
调用完后,你仍然需要通过 cc.director.loadScene 来启动场景,因为这个方法不会执行场景加载操作。
就算预加载还没完成,你也可以直接调用 cc.director.loadScene,加载完成后场景就会启动。
@param sceneName The name of the scene to preload.
@param onProgress callback, will be called when the load progression change.
@param onLoaded callback, will be called after scene loaded.
*/
preloadScene(
sceneName: string,
onProgress?: (
completedCount: number,
totalCount: number,
item: any
) => void,
onLoaded?: (error: Error) => void
): void;
如果只是超了一些,建议用分包
分包文档在哪里哦
估计你超出不多,单纯的靠压缩图片就能解决