Ubuntu安装Unity编辑器

MirrorYuChen
MirrorYuChen
发布于 2024-11-12 / 18 阅读
0
0

Ubuntu安装Unity编辑器

1.Unity下载

>> wget https://download.unitychina.cn/download_unity/9b1d5b08fe8a/LinuxEditorInstaller/Unity.tar.xz
>> wget https://download.unitychina.cn/download_unity/9b1d5b08fe8a/MacEditorTargetInstaller/UnitySetup-Mac-Mono-Support-for-Editor-2021.3.34f1c1.pkg
>> wget https://download.unitychina.cn/download_unity/9b1d5b08fe8a/LinuxEditorTargetInstaller/UnitySetup-WebGL-Support-for-Editor-2021.3.34f1c1.tar.xz
>> https://download.unitychina.cn/download_unity/9b1d5b08fe8a/MacEditorTargetInstaller/UnitySetup-Windows-Mono-Support-for-Editor-2021.3.34f1c1.pkg

2.解压工具安装

>> sudo apt-get install p7zip-full

3.openssl安装

>> wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl1.0/libssl1.0.0_1.0.2n-1ubuntu5.13_amd64.deb
>> dpkg -i libssl1.0.0_1.0.2n-1ubuntu5.13_amd64.deb

4.Unity解压

>> tar -xvJf Unity.tar.xz
>> tar -xvJf UnitySetup-WebGL-Support-for-Editor-2021.3.34f1c1.tar.xz
# mac 
>> 7z x UnitySetup-Mac-Mono-Support-for-Editor-2021.3.34f1c1.pkg
>> mkdir MacStandaloneSupport
>> 7z x Payload~ -oMacStandaloneSupport
>> rm Payload~
>> cp -r MacStandaloneSupport ./Editor/Data/PlaybackEngines/
# windows
>> 7z x UnitySetup-Windows-Mono-Support-for-Editor-2021.3.34f1c1.pkg
>> mkdir WindowsStandaloneSupport
>> 7z x Payload~ -oWindowsStandaloneSupport
>> rm Payload~
>> cp -r WindowsStandaloneSupport ./Editor/Data/PlaybackEngines/

5.将Unity添加到环境变量

>> vim ~/.bashrc
export http_proxy="http://10.46.200.165:26382"  https_proxy="http://10.46.200.165:26382"
export UNITY_PATH=[path]/Editor
export PATH:$PATH:$UNITY_PATH
>> source ~/.bashrc

评论