Unity是什么
Unity 是实时3D互动内容创作和运营平台 。包括游戏开发、美术、建筑、汽车设计、影视在内的所有创作者,借助Unity将创意变成现实。Unity平台提供一整套完善的软件解决方案 ,可用于创作、运营和变现任何实时互动的2D和3D内容,支持平台包括手机、平板电脑、PC、游戏主机、增强现实和虚拟现实设备
环境准备:
VMware workstation17 下载地址:
https://www.vmware.com/cn/products/workstation-pro/workstation-pro-evaluation.html
Ubuntu20.04镜像 下载地址:
https://releases.ubuntu.com/20.04/
操作步骤:
新建虚拟机
![](https://img-blog.csdnimg.cn/img_convert/aeee77510f4ea09423022b2a8c7f9be4.png)
![](https://img-blog.csdnimg.cn/img_convert/91e442913d33753149f40e99d2c30645.png)
![](https://img-blog.csdnimg.cn/img_convert/a2b683a659a30dc397d3ab87d6cca0b2.png)
![](https://img-blog.csdnimg.cn/img_convert/045d8ddcb06c2515ff64b51001731507.png)
![](https://img-blog.csdnimg.cn/img_convert/732136ec3b592e36ba280d23516e6f3b.png)
![](https://img-blog.csdnimg.cn/img_convert/d4aa820319a664b0784504cb29d7cf47.png)
![](https://img-blog.csdnimg.cn/img_convert/689327e7749b300724e1b8601b697ef1.png)
![](https://img-blog.csdnimg.cn/img_convert/473d91bec43eb879b4a2fc022b1a1cc5.png)
![](https://img-blog.csdnimg.cn/img_convert/44957d6812c042f4298c76b984d3ae75.png)
![](https://img-blog.csdnimg.cn/img_convert/4f69e7530559c872059a20804a72b930.png)
![](https://img-blog.csdnimg.cn/img_convert/3180d01100dd879dffc7155efaf012bd.png)
![](https://img-blog.csdnimg.cn/img_convert/aa8b8e798f7b264da8e8d39a9e3df608.png)
![](https://img-blog.csdnimg.cn/img_convert/eb70e3f06a027a5e8dfef06e376995b4.png)
![](https://img-blog.csdnimg.cn/img_convert/7d758f0127e5484ab1da5508cd0a4583.png)
![](https://img-blog.csdnimg.cn/img_convert/d649e7c079c9cc8b57d45df53099f3c4.png)
![](https://img-blog.csdnimg.cn/img_convert/11c4dfaac6cdd5b064f85dcaedc46dc2.png)
开机
2.安装ubuntu20.04.5 desktop
![](https://img-blog.csdnimg.cn/img_convert/5f6a81ea71240a54cf7024ea7688dea5.png)
![](https://img-blog.csdnimg.cn/img_convert/c9e33ff086549c3383ffaa138424fe6d.png)
![](https://img-blog.csdnimg.cn/img_convert/040f8e6f1a07e8bc37e1b7bea5a44772.png)
![](https://img-blog.csdnimg.cn/img_convert/e3bc43d2c947f9b76b01e02cd0bdb68b.png)
![](https://img-blog.csdnimg.cn/img_convert/04d1c8b577ce8ce1152b6e7315fc472c.png)
![](https://img-blog.csdnimg.cn/img_convert/52721ffc4e2e7b6fbd2ea84d9b4d9460.png)
![](https://img-blog.csdnimg.cn/img_convert/842ca5db4929d23510811898f80a43b0.png)
![](https://img-blog.csdnimg.cn/img_convert/36189d0139f6b58105b840886050fe89.png)
设置用户名密码
![](https://img-blog.csdnimg.cn/img_convert/ec6a8a4585f07119f350096220f05955.png)
![](https://img-blog.csdnimg.cn/img_convert/f96f409d2795f11ecd8314f3d67f308f.png)
等待ubuntu20.04.5系统安装完毕重启
2.1配置网络
![](https://img-blog.csdnimg.cn/img_convert/745cde831bad5d3359c0295515dfd85e.png)
![](https://img-blog.csdnimg.cn/img_convert/50a17fd9064eaf84149d073b3deaf5a1.png)
![](https://img-blog.csdnimg.cn/img_convert/3735c81a51e7ac2c9b43218ee2756ae5.png)
2.2设置DNS
打开终端
![](https://img-blog.csdnimg.cn/img_convert/398be46f749d6fe010b49a58f053fe9b.png)
![](https://img-blog.csdnimg.cn/img_convert/0bd7bdd6991b348e8a17982c2158ce94.png)
nameserver 192.168.20.2
![](https://img-blog.csdnimg.cn/img_convert/d86ee1fafc7f66975b0e0539c65c0838.png)
保存并退出
3.安装并配置unity
3.1添加 Unity 中心存储库
sudo sh -c 'echo "deb https://hub.unity3d.com/linux/repos/deb stable main" > /etc/apt/sources.list.d/unityhub.list'
![](https://img-blog.csdnimg.cn/img_convert/212971fce78d7bcc6fda318144be062e.png)
3.2添加公共签名密钥
wget -qO - https://hub.unity3d.com/linux/keys/public | sudo apt-key add -
![](https://img-blog.csdnimg.cn/img_convert/4ca31505238b668fb1bdcdbcba8bd0e5.png)
3.3更新缓存包并安装unityhub
sudo apt update
sudo apt-get install unityhub
![](https://img-blog.csdnimg.cn/img_convert/e0cf961860fa67489f825ceb121c4a15.png)
![](https://img-blog.csdnimg.cn/img_convert/eaf7827dba0a16ffeda0e09100b175d4.png)
3.4配置unity
![](https://img-blog.csdnimg.cn/img_convert/59c8f4680d01db9ffbcdafe162e8adca.png)
![](https://img-blog.csdnimg.cn/img_convert/89c4c4342c884f81aa6e096f6b2ec779.png)
需要创建一个unity号创建完登录即可
进去之后会弹出安装2021版本的编辑器选择skip installation(跳过安装)稍后安装2022版本的编辑器
![](https://img-blog.csdnimg.cn/img_convert/cad7523e5c0615ebe7777e3fd6f5d721.png)
![](https://img-blog.csdnimg.cn/img_convert/4b426ef5e3a9c1ee38efa1e31b909c8c.png)
需设置中文的话
![](https://img-blog.csdnimg.cn/img_convert/a5d67133f71438330b646fb343c1ae7a.png)
![](https://img-blog.csdnimg.cn/img_convert/3ab7e9d5b5ccc1ea9653c1e260e77f66.png)
安装2022版本编辑器
![](https://img-blog.csdnimg.cn/img_convert/8ee71e437082b7c1aadfecd57d6ca8a0.png)
![](https://img-blog.csdnimg.cn/img_convert/4d75f554827793ec57fd2eb98243a8e7.png)
![](https://img-blog.csdnimg.cn/img_convert/5c553ea36c4639f95ef18a2d24f838f5.png)
等待安装完成
![](https://img-blog.csdnimg.cn/img_convert/18bd9215136bdcccc10e69b432337356.png)
安装完之后可以创一个项目
![](https://img-blog.csdnimg.cn/img_convert/6e88772cfe75416b4a0e4db86d8dfa50.png)
![](https://img-blog.csdnimg.cn/img_convert/65c3b2d257d4ec3ee7327795481cbfda.png)
![](https://img-blog.csdnimg.cn/img_convert/020f223d6a45f38080ce53537c41afb7.png)
![](https://img-blog.csdnimg.cn/img_convert/281a20c37dc326970ba5c3080ac61a5c.png)