Version: 5.6
Basics
离线部署 Unity

Downloading and installing Unity

Download and install the Unity Editor from the Unity download page. The installer uses a Download Assistant and has detailed instructions to follow. If you want to download the Unity Editor using a torrent or install several versions of Unity at once, see Torrent Download, below.

Unity Download Assistant

The Unity Download Assistant is a small executable program (approximately 1 MB in size) which lets you select which components of the Unity Editor you want to download and install.

If you’re not sure which components you want to install, leave the default selections, click Continue, and follow the installer’s instructions.

Unity Download Assistant (leave the default selections if youre not sure which to choose)
Unity Download Assistant (leave the default selections if you’re not sure which to choose)

Note that on PC there is Microsoft Visual Studio Community 2015.

###

Installing Unity without the Download Assistant

If you prefer, you can download and install all of the components separately, without using the Download Assistant. The components are normal installer executable programs and packages, so you may find it simpler, especially if you are a new Unity user, to use the Download Assistant. Some users, such as those wishing to automate deployment of Unity in an organization, may prefer to install from the command line.

Installing Unity on Windows from command line

The following options can be used when installing the Unity Editor and other components from command line on Windows. Note that installer command line arguments are case-sensitive.

Unity Editor 安装

/S 执行静默(不提出问题)安装。
/D=PATH Sets the default install directory. Useful when combined with the silent install option. Default folder is C:\Program Files (x86)\Unity (32-bit) or C:\Program Files\Unity (64-bit)

Example:

UnitySetup64.exe /S /D=E:\Development\Unity

Install Unity silently to the folder E:\Development\Unity, which will be the root of the Unity installation. The Unity editor executable will in this case be installed in E:\Development\Unity\Editor\Unity.exe. “/D” argument must be last and without quotes, even if path contains spaces.

Unity Editor 卸载

To perform a silent uninstall, run Uninstall.exe /S (for example, from command line or a script).

Note that although the process will finish right away, it takes a few seconds before the files are actually removed. The reason for this is that the uninstaller is copied to a temporary location in order to be able to remove itself. Also, make sure the working directory is not inside the Unity install location, as it won’t be able to remove the folder if this is the case.

标准资源 (Standard Assets) 安装

Silently install Standard Assets. If specifying folder, use the Unity “root” folder (that is, the folder containing the Editor folder, and not where Unity.exe is installed into).

UnityStandardAssetsSetup.exe /S /D=E:\Development\Unity

示例项目安装

Silently install the Example Project. The default folder is C:\Users\Public\Documentation\Unity Projects\Standard Assets Example Project.

UnityExampleProjectSetup.exe /S /D=E:\Development\Unity

Installing Unity on OS X from command line

The individual Unity installers are provided as .pkg files, which can be installed using installer as described below.

Unity Editor 安装

Installs into folder /Applications/Unity on the specified target volume:

sudo installer [-dumplog] -package Unity.pkg -target /

标准资源 (Standard Assets) 安装

Installs into folder /Applications/Unity/Standard Assets on the specified volume:

sudo installer [-dumplog] -package StandardAssets.pkg -target /

示例项目安装

Installs into folder /Users/Shared/Unity/Standard-Assets on the specified volume:

sudo installer [-dumplog] -package Examples.pkg -target /

Torrent Download

If you’d prefer to download Unity via a BitTorrent client, you can download get a torrent link from the Unity download archive page. Not all versions have a torrent download. If a version is available to download as a torrent, the option is presented as Torrent download (Win+Mac) in the Downloads dropdown menu.

Downloading Unity via a Torrent
Downloading Unity via a Torrent

一次安装多个版本

可以在同一台计算机上安装任意数量的 Unity 版本。

The installer on a Mac creates a folder called Unity, and overwrite any existing folder with this name - however, if you rename the folder to something else before installing another versions, then both versions can exist on the same computer without problems.

On a PC, the install folder is always named Unity X.Y.Z[fp]W, where the ‘f’ is for an official release, and ‘p’ is used to mark a patch release.

We strongly recommend that if you rename a Unity folder, you choose the new folder name logically (for example, add the version number to the end of the name). Note that any existing shortcuts, aliases and links to the offline docs may no longer point to the old version of Unity. This can be particularly confusing with the offline docs; if you suddenly find that browser bookmarks to the offline docs no longer work, then check that they have the right folder name in the URL.

Basics
离线部署 Unity