More info See in Glossary as well as publishing your final build. It contains settings to create development builds A development build includes debug symbols and enables the Profiler.
#UNITY 3D UBUNTU MAC#
From Unity’s main menu, go to File and select either Build or Build and Run.The PC, Mac & Linux Standalone build settings contain options you can use to set up and begin the build process for your application on these platforms. Select the PC, Mac and Linux Standalone option.Open the Build Settings (menu: File > Build Settings).To build a Linux Player, follow these steps: Unity automatically uses the Linux IL2CPP cross-compiler at build time.
If you meet all of the prerequisites on this page, you can build your project as a Linux Player. The table below shows the total disk space requirements for each toolchain package. Environment variables are specific to your operating system, so you need to follow your system’s guidelines to set them. In this case, you set a cache that Unity can reference when decompressing the sysroot and toolchain packages. An environment variable is a variable that you set outside of Unity which is available for Unity to reference. In the rare instances where you are unsure whether you have enough space, define a UNITY_SYSROOT_CACHE environment variable and use it to store the uncompressed sysroots and toolchain packages. Make sure you have enough disk space to account for the package download, decompression, and use. Required disk space for Linux toolchain packages Each of these platforms builds for Linux in a unique way.Ī Linux toolchain package is a set of tools (including the compiler and linker) that Unity needs to build for Linux from each of these operating systems. Unity provides toolchain packages for macOS, Windows, and Linux. To address this, Unity provides a sysroot to build with which works on all supported Linux platforms. If you build using the headers and libraries of a particular OS, the built Player might not run on other operating systems.
#UNITY 3D UBUNTU HOW TO#
For information on how to install the IL2CPP module, follow the steps documented on Adding modules.Ī Linux sysroot package is a directory which includes all the headers and libraries you need to build for Linux.Įvery operating system (OS) has its own build systems which vary from one to another. To set the scripting backend to IL2CPP: Go to Edit > Project Setting > Player Settings > Setting for PC, Mac and Linux Standalone > Other Settings > Configuration.
For further information, see the Required disk space for Linux toolchain packages
Build settings window with Linux build target selected Prerequisites
If you already have these installed, you also need to remove them from the package manager. If you want to opt out of this process and use your own sysroot and toolchain packages, go to Edit > Project Settings > Toolchain Management and disable the Install Toolchain package automatically checkbox. If you meet the prerequisites, Unity automatically installs these packages for you when you choose the Linux build target. More info See in Glossary cross-compiler is a set of sysroot and toolchain packages that allow you to build Linux IL2CPP Players on any Standalone platform without needing to use the Linux Unity Editor or rely on Mono. The Linux IL2CPP A Unity-developed scripting back-end which you can use as an alternative to Mono when building projects for some platforms.