Lesson 80 +10 XP

Desktop & Console Builds

Desktop & Console Builds

Building games for PC, Mac, Linux, and major consoles requires managing inputs, resolutions, and system resources.

Desktop Targets (PC, Mac, Linux)

When compiling for desktops:

  • Select PC, Mac & Linux Standalone in Build Settings.
  • Architecture: Select x86_64 (64-bit systems) for PC or Apple Silicon targets.
  • Inputs: Ensure mouse, keyboard, and gamepads are handled.
  • File Access: You can read and write files locally (e.g. game saves) using standard C# APIs like System.IO.File.WriteAllText(Application.persistentDataPath + "/save.json", json).

Console Targets (PlayStation, Xbox, Nintendo Switch)

To build for consoles, you must register as an official developer with Sony, Microsoft, or Nintendo:

  • Once approved, you gain access to custom Unity build modules and SDKs.
  • TRC (Technical Requirements Checklist): Consoles have strict certification requirements. Your game must handle things like controller disconnects, user profile swaps, and saving states correctly without crashing, or your game will fail certification.
  • Always build using the IL2CPP scripting backend for consoles.

TL;DR

  • Standalone target builds for Windows, macOS, and Linux.
  • Use Application.persistentDataPath to save local files.
  • Console builds require developer credentials, SDK modules, and compliance with TRCs.
  • IL2CPP is the standard compile backend for consoles.