Skip to content

Instantly share code, notes, and snippets.

@tylearymf
Created August 9, 2021 09:24
Show Gist options
  • Save tylearymf/6c31610ba909dc4ed1eee2185772b4f2 to your computer and use it in GitHub Desktop.
Save tylearymf/6c31610ba909dc4ed1eee2185772b4f2 to your computer and use it in GitHub Desktop.
1、安装 Docker
2、进入 linux 创建对应的目录,比如:agent_xxx
3、创建 accelerator 程序,端口为 10086(自定义), 绑定端口为 10080(不可改)
cmd 运行: docker run -p 10086:10080 -e "UNITY_ACCELERATOR_PERSIST=/agent_xxx" -e "UNITY_ACCELERATOR_DEBUG=true" unitytechnologies/accelerator:latest
4、创建账号/修改密码,创建账号为 dev
在 docker 中打开该程序的 cli:unity-accelerator dashboard password dev
如果需要多个 accelerator,则重复 2~4 步骤
在 Unity 中的 ProjectSettings -> Editor -> Cache Server(project specific) -> 选择 Mode 为 Enabled,然后输入 IP address: localhost:10086
不要在 Editor -> Preferences -> Cache Server(global) 中设置哈,因为会修改到全局配置。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment