Legacy Documentation: Version 5.1
Command line arguments
Running Editor Script Code on Launch

Installing Unity

Unity Download Assistant

In Unity 5.0 we have introduced the Unity Download Assistant, a small executable approx. 1 MB in size, which will let you select which components of Unity you want to download and install.

Unity Download Assistant
Unity Download Assistant

Installing Unity without the Download Assistant

The components downloaded and installed by the Download Assistant are normal installer executables/packages, which can be downloaded and installed separately, e.g. for automated deployment of Unity in an organization.

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 install

/S Performs a silent (no questions asked) install.
/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 uninstall

Silent uninstall can be performed using the following steps:

  1. Run Uninstall.exe /S e.g. from command line or a script

Note, although the process will finish right away, it takes a few seconds before the files actually have been 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 in that case.

Web Player install

Silently install webplayer (No option to specify install folder):

UnityWebPlayer.exe /S

Standard Assets install

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

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

Example Project install

Silently install Example Project. 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 install

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

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

Web Player install

The Unity Web Player is installed in /Library/Internet Plug-ins/Unity Web Player.plugin on Mac.

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

Standard Assets install

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

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

Example Project install

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

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

Torrent download

Additionally you can also download the individual installers from a torrent near you. Go to http://unity3d.com/download for a torrent download feed link.

Installing several versions at once

You can install as many versions of Unity as you like on the same computer. The installer will always create a folder called “Unity” and will overwrite any existing folder with this name. However, if you rename the folder to something else before installing then both versions can happily live on the same computer.

We strongly recommend that you choose the new folder name carefully (eg, add the version number to the end of the name, “Unity4”, etc). Also, be aware that any existing shortcuts, aliases and links to the offline docs will 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.

Command line arguments
Running Editor Script Code on Launch