If you want to automate the deployment of Unity in an organization, you can install the Editor and other components from the command line. The components are normal installer executable programs and packages which you can use to automate the deployment of Unity.
To download the components, you use the Unity installer to download the Unity components to a folder on your computer.
Download and run the installer. Release versions of the installer are available from the Unity download archive. For pre-release versions of the installer, see the Beta programs page.
In Choose Components, select all of the components for which you are automating deployment.
In Choose Download and Install locations, click the Download to radio button.
Enter a location in which to store the component installers.
Finish the installation.
Navigate to the download location you specified. In the folder, you will find the installer files for the components you selected and a script file (install.bat
on Windows or install.sh
on Linux or OS X) that you can run to install the components.
To install Unity on another computer using the downloaded components, copy the contents of the folder to the destination computer and execute the install script.
Use the following options when installing the Editor and other components from the command line on Windows.
Note: Installer command line arguments are case-sensitive.
Command | Details |
---|---|
/S | Performs a silent (no questions asked) install. |
/D=PATH | Sets the default install directory. Useful when combined with the silent install option. The 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
This example installs Unity silently to a E:\Development\Unity folder, which becomes the root of the Unity installation. In this case, the Editor executable is installed in E:\Development\Unity\Editor\Unity.exe. The default install directory must be the last argument on the command line. The supplied path must not be surrounded by quotes, even if the path contains spaces.
To perform a silent uninstall, run Uninstall.exe /S
from the command line or a script.
Note: Although the process finishes right away, there is a delay before the files are actually removed. This is because the uninstaller is copied to a temporary location to enable it to remove itself. Make sure that the working directory is not inside the Unity install location. If it is, the uninstaller is unable to remove the folder.
To silently install Standard Assets:
UnityStandardAssetsSetup.exe /S /D=E:\Development\Unity
Note: If specifying a folder, use the Unity root folder (that is, the folder containing the Editor folder, and not the folder in which Unity.exe is installed.)
To silently install the Example Project, use:
UnityExampleProjectSetup.exe /S /D=E:\Development\Unity
Note: The default folder is C:\Users\Public\Documentation\Unity Projects\Standard Assets Example Project
.
The individual Unity installers are provided as .pkg files, which can be installed using the installer
command, as described below.
To install the Editor into a /Applications/Unity
folder on the specified target volume, enter:
sudo installer [-dumplog] -package Unity.pkg -target /
To install the Standard Assets into a /Applications/Unity/Standard Assets
folder on the specified volume, enter:
sudo installer [-dumplog] -package StandardAssets.pkg -target /
To install the Example Project into a /Users/Shared/Unity/Standard-Assets
folder on the specified volume, enter:
sudo installer [-dumplog] -package Examples.pkg -target /
If you 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.
You can install multiple versions of Unity on the same computer.
On a Mac, the installer creates a folder called Unity, and overwrites any existing folder with this name. To install more than one version of Unity on your Mac, rename the existing Unity folder before installing another version.
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 name the new folder logically (for example, add the version number to the end of the name). Any existing shortcuts, aliases and links to the offline docs might 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.
When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer.
More information
These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising. Some 3rd party video providers do not allow video views without targeting cookies. If you are experiencing difficulty viewing a video, you will need to set your cookie preferences for targeting to yes if you wish to view videos from these providers. Unity does not control this.
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.