
202-01-06 Unity 使用 Tip1 —— UnityHub 模块卸载重装
起因:WebGL 平台打包程序报错,懒得修复了,因此粗暴地删了重装。但是 UnityHub 不支持卸载模块,因此手动配置。
·
起因:
WebGL 平台打包程序报错,懒得修复了,因此粗暴地删了重装。但是 UnityHub 不支持卸载模块,因此手动配置。

1 卸载模块
以 Unity 6000.0.26f1c1 为例,其安装路径为 S:\Unity Editor\6000.0.26f1c1。
则编辑器模块目录路径为:S:\Unity Editor\6000.0.26f1c1\Editor\Data\PlaybackEngines\WebGLSupport。

直接选中 WebGLSupport 文件夹删除。
2 更新配置文件
找到 modules.json 文件。其路径为 S:\Unity Editor\6000.0.26f1c1\Editor\modules.json。

打开该文件,本文使用 VSCode 打开,并右键格式化方便查看内容。

找到 WebGL 配置信息,将 “selected” 属性改为 false 并保存修改。

3 重启 UnityHub
重新启动 UnityHub,方式选其一:
- 打开任务管理器,右键结束任务。

- 右键图标,后台退出。

打开对应 Unity 编辑器的配置选项,即可重新安装。



更多推荐
所有评论(0)