主要的编译参考来着官方文件
安装unity hub
安装2020.3.3f1在unity hub上
但是我发现没有2020.3.3f1,只有2020.3.3f1c1,其实c1就是中国版,没有什么影响
输入:git lfs install
> Git LFS initialized.
官方:
Documents
文件夹,使用 cd
在终端中,以便终端的输入类似于 /Documents$
git clone https://github.com/lgsvl/simulator.git
Simulator
文件夹Simulator
文件夹是imulator/Assets/Materials/EnvironmentMaterials/
EnvironmentDamageAlbedo.png
在此文件夹中D:\Documents\s>git clone https://github.com/lgsvl/simulator.git
error: external filter 'git-lfs filter-process' failed
fatal: Assets/Animations/HumanoidIdle.fbx: smudge filter lfs failed
warning: Clone succeeded, but checkout failed.
You can inspect what was checked out with 'git status'
and retry with 'git restore --source=HEAD :/'
// Skip smudge - We'll download binary files later in a faster batch
git lfs install --skip-smudge
// Do git clone here
git clone https://github.com/lgsvl/simulator.git
// Fetch all the binary files in the new clone
git lfs pull
// Reinstate smudge
git lfs install --force
到第三部的时候还是会出现报错
D:\Documents\s\simulator>git lfs pull
batch response: This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.
Failed to fetch some objects from 'https://github.com/lgsvl/simulator.git/info/lfs'
然后到此网上的办法都没有用,我怀疑是这个项目的原因
找了很久终于找到了办法!
git clone https://gitlab.com/OSSDC/OSSDC-SIM.git
报错如下:
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output
原因猜测,拉取项目过大,可能太慢 ,超时了
解决:
git config --global http.postBuffer 600000
将链接中的 github.com 替换为 github.com.cnpmjs.org
如果方法1报以下错误
Could not resolve host: github.com.cnpmjs.org
在git控制台上输入下面这句,然后在正常去拉取,它会使你默认使用镜像
git config --global url."https://hub.fastgit.xyz/".insteadOf https://github.com/
进入项目目录,然后git lfs pull
到此,再去检查那个照片,终于能看到了
项目必须必须拉完整,不然unity项目不会显示simulator