版本:2.4.3
cocos自带了加载界面,现在实现隐藏掉这个加载界面。
定制项目构建模板
以web-mobile发布网页端为例子
1. 在项目目录下创建build-templates/web-mobile
2.构建一次项目,并复制发布目录build\web-mobile下main.js和index.html到这个文件夹
![](https://img-blog.csdnimg.cn/img_convert/92f12a44bfa7252026a4956938e3ee9f.png)
3. 修改index.html
设置背景色为黑色 style="background-color:#000000;"
![](https://img-blog.csdnimg.cn/img_convert/fa7332f04c10b4f73bb35a77c7b56708.png)
设置splash为none,不显示它
<版本:2.4.3
cocos自带了加载界面,现在实现隐藏掉这个加载界面。
定制项目构建模板
以web-mobile发布网页端为例子
1. 在项目目录下创建build-templates/web-mobile
2.构建一次项目,并复制发布目录build\web-mobile下main.js和index.html到这个文件夹
3. 修改index.html
设置背景色为黑色 style="background-color:#000000;"
设置splash为none,不显示它
<