【Unity】Unity Build Basics: Exporting Games for PC, Web, and Mobile

Created: 2025-12-07

Building exports your game as executable applications others can play. Learn build methods for major platforms (PC, WebGL, iOS, Android) and important platform-specific settings.

Overview

After completing your game in Unity Editor, the final step is Building. Building converts your Unity project into a standalone application that runs directly on specific platforms (Windows, macOS, iOS, Android, etc.). This lets anyone play your game without having Unity installed.

This article covers build procedures for major platforms and essential settings.

Build Settings Window

All build configuration happens in the Build Settings window, opened via File > Build Settings.

  • Scenes In Build: List of scenes included in the build. Scenes not listed are excluded. Add Open Scenes button adds currently open scenes. The first scene (index 0) loads when the game starts. Drag and drop to reorder.
  • Platform: List for selecting target platform. Includes PC, Mac & Linux Standalone, WebGL, iOS, Android, etc. Select a platform and press Switch Platform—Unity reimports project assets for that platform. This process can take time.

Player Settings

Click Player Settings at the bottom-left of Build Settings window to open Project Settings for detailed platform configuration. This is crucial for builds.

  • Company Name / Product Name: Author and product names. Used in executable properties and mobile app names.
  • Default Icon: Set application icon image.
  • Resolution and Presentation: Screen resolution, fullscreen mode, supported orientations (portrait/landscape).
  • Splash Image: Customize launch splash screen (Unity logo, etc.). Paid plans only.
  • Other Settings: Technical platform-specific settings: rendering, color space (Gamma/Linear), API levels, and importantly Bundle Identifier.
    • Bundle Identifier: Unique ID in reverse domain format like com.YourCompanyName.YourProductName. Critical for app identification, especially on mobile platforms.

Platform Build Guides

PC, Mac & Linux Standalone

The simplest build.

  1. Select PC, Mac & Linux Standalone in Platform.
  2. Choose target OS (Windows, macOS, Linux) in Target Platform.
  3. Select CPU architecture (Intel 64-bit, etc.) in Architecture.
  4. Press Build, specify executable location and name.
  5. After build completes, .exe (Windows) or .app (macOS) files are generated in the specified folder.

WebGL

Builds games for web browsers. Playable without special plugins—great for game jam submissions and quick demos.

  1. Select WebGL in Platform and Switch Platform.
  2. Adjust WebGL-specific settings (memory size, etc.) in Player Settings.
  3. Press Build and specify output folder.
  4. Build generates index.html, Build folder, and TemplateData folder. Upload these to a web server and access index.html to play.

Note: For security reasons, most browsers won't run index.html as local files (file://). Testing requires a local web server.

Android

Generates .apk or .aab (Android App Bundle) files for Android devices.

  1. SDK/NDK/JDK Setup: In Unity Hub's Installs tab, add Android Build Support module to your Unity version. Check Android SDK & NDK Tools and OpenJDK to install.
  2. Select Android in Platform and Switch Platform.
  3. Set Minimum API Level and Target API Level in Player Settings > Other Settings.
  4. Create Keystore: Digital signing is required for Google Play Store publication. Open Keystore Manager in Player Settings > Publishing Settings to create a new keystore. Guard this file and password carefully.
  5. Press Build to generate .apk. Copy to Android device to install and test.

iOS

Builds for iOS devices, but final app generation requires macOS and Xcode.

  1. macOS Required: iOS builds don't work on Windows. Run Unity on macOS.
  2. Select iOS in Platform and Switch Platform.
  3. Configure bundle ID, target device (iPhone/iPad), etc. in Player Settings.
  4. Press Build—Unity generates an Xcode project, not a direct app file like .apk.
  5. Open the Xcode project in Xcode, configure signing with your developer account, and build/deploy to connected iOS devices. App Store submission is also done through Xcode.

Summary

Building is the final development stage—sending your creation to the world.

  • Configure scenes and target platform in Build Settings window.
  • Set app name, icon, bundle ID, and platform details in Player Settings.
  • PC builds are simplest—just press Build.
  • Android builds require SDK/NDK/JDK setup and keystore signing.
  • iOS builds require macOS; Unity outputs Xcode projects. Final build and signing happen in Xcode.

Each platform has unique requirements and review processes. When building for the first time, check official documentation for current requirements.