适用于:Unity2019之前版本
1、下载node.js版本: https://nodejs.org/dist/latest-v12.x/node-v12.22.5-x64.msi
2、在有网的情况下安装Unity Cache Server: npm install unity-cache-server -g
3、找到C:\User\xxx\AppData\Roaming\npm>unity-cache-server 然后把这个拷贝到内网
4、把CacheServerTransactionImporter.cs 放到要导出的工程目录下,运行Cache Server Utilities > Export Transactions 也可以使用bat:Unity -executeMethod 进行执行,生成对应平台的json文件
5、启动Unity Cache Server 执行:unity-cache-server
6、把本地的转化上传到服务器上 unity-cache-server-import
[server:port]
7、在Unity Preferences钟设置Cashe Server Remote server:port
8、Unity Cache Server配置
On macOS, EditorPrefs are stored in ~/Library/Preferences/com.unity3d.UnityEditor5.x.plist.
On Windows, EditorPrefs are stored in the registry under the HKCU\Software\Unity Technologies\UnityEditor 5.x key.
需要把这个注册表导出,并且只保留其中CacheServerIPAddress和CacheServerMode两个选项,在启动机器上打开这个注册表,然后启动Unity时就会使用到CacheServer
参考: https://github.com/Unity-Technologies/unity-cache-server
|