Unity 编辑器现已正式面向 Linux 推出
Unity
如果你是设计师、开发者或艺术家，你可能一直在使用 Linux 上的实验性 [Unity 编辑器](https://unity3d.com/unity/editor)。然而，不能一直用实验性版本 —— 开发者需要一个完整稳定的工作经验。


因此，他们最近宣布你可以在 Linux 上使用完整功能的 Unity 编辑器了。


虽然这是一个令人兴奋的消息，但它正式支持哪些 Linux 发行版？我们来谈谈更多细节……



> 
> 非 FOSS 警告
> 
> 
> Linux （或任何其他平台）上的 Unity 编辑器不是开源软件。我们在这里介绍它是因为：
> 
> 
> 


### 官方支持 Ubuntu 和 CentOS 7


![](/data/attachment/album/201906/14/112102oo7l7rjstuvisnus.png)


无论你拥有个人许可还是专业许可，如果你安装了 Unity 2019.1 或更高版本，都可以使用该编辑器。


此外，他们优先支持 Ubuntu 16.04、Ubuntu 18.04 和 CentOS 7。


在[公告](https://blogs.unity3d.com/2019/05/30/announcing-the-unity-editor-for-linux/)中，他们还提到了支持的配置：


* x86-64 架构
* 运行在 X11 窗口系统之上的 Gnome 桌面环境
* Nvidia 官方专有显卡驱动和 AMD Mesa 显卡驱动
* 桌面计算机，在没有仿真或兼容层的设备/硬件上运行


你可以尝试其他的 —— 但最好坚持官方要求以获得最佳体验。



> 
> 关于第三方工具的说明
> 
> 
> 如果你碰巧在某个项目中使用了任何第三方工具，那么必须单独检查它们是否支持。
> 
> 
> 


### 如何在 Linux 上安装 Unity 编辑器


现在你已经了解了，那么该如何安装？


要安装 Unity，你需要下载并安装 [Unity Hub](https://forum.unity.com/threads/unity-hub-v-1-6-0-is-now-available.640792/)。


![Unity Hub](/data/attachment/album/201906/14/112104hdua83vdxkjwutzv.jpg)


你需要完成以下步骤：


* 从[官方论坛页面](https://forum.unity.com/threads/unity-hub-v-1-6-0-is-now-available.640792/)下载适用于 Linux 的 Unity Hub。
* 它将下载一个 AppImage 文件。简单地说，让它可执行并运行它。如果你不了解，你应该查看关于[如何在 Linux 上使用 AppImage](https://itsfoss.com/use-appimage-linux/) 的指南。
* 启动 Unity Hub 后，它会要求你使用 Unity ID 登录（或注册）以激活许可证。有关许可证生效的更多信息，请参阅他们的 [FAQ 页面](https://support.unity3d.com/hc/en-us/categories/201268913-Licenses)。
* 使用 Unity ID 登录后，进入 “Installs” 选项（如上图所示）并添加所需的版本/组件。


就是这些了。这就是获取并快速安装的最佳方法。


### 总结


即使这是一个令人兴奋的消息，但官方配置支持似乎并不广泛。如果你在 Linux 上使用它，请在[他们的 Linux 论坛帖子](https://forum.unity.com/forums/linux-editor.93/)上分享你的反馈和意见。


你觉得怎么样？此外，你是使用 Unity Hub 安装它，还是有更好的方法来安装？


请在下面的评论中告诉我们你的想法。




---


via: <https://itsfoss.com/unity-editor-linux/>


作者：[Ankush Das](https://itsfoss.com/author/ankush/) 选题：[lujun9972](https://github.com/lujun9972) 译者：[geekpi](https://github.com/geekpi) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
![Warp Terminal](/assets/images/warp-terminal.webp)


![Warp Terminal](/assets/images/warp-terminal.webp)

If you are a designer, developer, or artist, you probably should have known about Unity Editor and its wide range of features. It’s encouraging news that Unity offers several installation methods in Linux distributions.

While this is exciting news, what Linux distributions does it officially support? Let us talk about a few more details.

**Non-FOSS Alert**: Unity Editor on Linux (or any other platform) is not open-source software. It is covered here because it supports to install in Linux distribution.

## Official Support for Ubuntu and CentOS 7

![unity editor on linux](https://itsfoss.com/content/images/wordpress/2022/09/unity-editor-on-linux.webp)

No matter whether you have a personal or a professional license, you can access the editor if you have Unity 2019.1 installed or later.

In addition, they are prioritizing the support for Ubuntu 20.04, and CentOS 7.

In their Linux Installation Instructions, they also mentioned the configurations supported for their 2021 LTS release:

- CPU: X64 architecture with SSE2 instruction set support
- Graphics API: OpenGL 3.2+ or Vulkan-capable, Nvidia, and AMD GPUs.
- Additional: Gnome desktop environment running on top of X11 windowing system, Nvidia official proprietary graphics driver or AMD Mesa graphics driver

You can always try on anything else – but it’s better to stick with the official requirements for the best experience.

A Note on 3rd Party Tools: If you happen to utilize any 3rd party tool on any of your projects, you will have to separately check whether they support it or not.

## Step 1: Installing Unity Hub on Linux

You are required to install a tool called Unity Hub first. It’s a management tool that can manage multiple installations of Unity. Once installed, the Unity Hub tool downloads and installs the Unity editor.

### Method 1: Install Unity Hub via terminal (for Ubuntu and Debian)

This is the recommended way of installing Unity Hub on the supported devices, that is Ubuntu and CentOS.

This method will work only in Ubuntu 20.04, 19.04, and CentOS 7. If you are running any of these, let’s jump right in.

Open a terminal and enter the commands one after another:

```
sudo sh -c 'echo "deb https://hub.unity3d.com/linux/repos/deb stable main" > /etc/apt/sources.list.d/unityhub.list'
wget -qO - https://hub.unity3d.com/linux/keys/public | sudo apt-key add -
sudo apt update
sudo apt-get install unityhub
```


This will install Unity Hub to your system. You will be greeted by a screen as shown below:

![unity hub home page](https://itsfoss.com/content/images/wordpress/2022/09/unity-hub-home-page.webp)

You now need to sign in with your Unity account. Clicking the sign-in button will open a browser tab and you need to allow the link to open in Unity Hub app:

![open link with unity hub application](https://itsfoss.com/content/images/wordpress/2022/09/open-link-with-unity-hub-application.png)

Now, you will need to choose license Personal, if you do not have a paid plan, from the next screen:

![get personal licence](https://itsfoss.com/content/images/wordpress/2022/09/get-personal-licence.png)

On the next screen, you will be asked to download an editor to work with projects. It normally takes several GBs of download. So sit back and relax while the download completes.

![downloading editor inside unity hub app](https://itsfoss.com/content/images/wordpress/2022/09/downloading-editor-inside-unity-hub-app.png)

You can now start working on your projects, once everything is finished.

### Method 2: Install Unity Hub through Flatpak

Luckily, Unity Hub is available as a flatpak version, so you can install it in any Linux distribution. You can read [how to work with flatpak apps](https://itsfoss.com/flatpak-guide/), if you are confused.

If you have flatpak installed and flathub repo added, open a terminal and execute the following command:

`flatpak install flathub com.unity.UnityHub`


The rest of the setup is the same as above.

### Method 3: Install Unity Hub using AppImage

To install Unity, you will have to download and run the [Unity Hub AppImage](https://unity3d.com/get-unity/download?ref=itsfoss.com).

![download unity hub appimage](https://itsfoss.com/content/images/wordpress/2022/09/download-unity-hub-appimage.png)

Simply, make it executable and run it. In case you are not aware of it, you should check out our guide on [how to use AppImage on Linux](https://itsfoss.com/use-appimage-linux/).

## Step 2: Installing Unity using the Unity Hub tool

Once you launch the Unity Hub, it will ask you to sign in (or sign up) using your Unity ID to activate the licenses. For more info on how the licenses work, do refer to their [FAQ page](https://support.unity3d.com/hc/en-us/categories/201268913-Licenses?ref=itsfoss.com).

After you sign in using your Unity ID, go to the “Installs” option (as shown in the image below) and add the version/components you want.

![add a unity version option](https://itsfoss.com/content/images/wordpress/2022/09/add-a-unity-version-option.png)

This will Install an older version of Unity Hub, which will not get any automatic updates.

### Unity Enterprises

Unity editor needs a license to work. If you are a new user of Unity, you can work with their personal or student license, which is free. Also, unity offers several tiers of licenses like Teams, Enterprise, etc.

![unity pricing categories](https://itsfoss.com/content/images/wordpress/2022/09/unity-pricing-categories.png)

While you can purchase the licenses for [Teams from their website](https://store.unity.com/?ref=itsfoss.com#plans-business), You cannot purchase the enterprise license. In order to get the enterprise license, you need to [talk to their representative](https://store.unity.com/?ref=itsfoss.com#plans-enterprise).

![manage accounts licenses in unity hub](https://itsfoss.com/content/images/wordpress/2022/09/manage-accounts-licenses-in-unity-hub.png)

You can add your Pro or other licenses with the corresponding serial number through Unity Hub interface.

That’s it! This is the best way to get all the latest builds and get it installed in a jiffy.

## Wrapping Up

It’s good to see Unity providing support for the Linux platform. The centralized way of installing everything through Unity Hub keeps things organized. What do you think?