/unity-patch

Dark theme patch for any version of Unity for Windows, MacOS and Linux.

Primary LanguageC#

CI Status

Unity Patch

This repository contains a patch for Unity that allows you to set options inacessible from the application's menus.

Currently, the only supported option for the patch is switching between the dark and light themes in Unity.

Usage

We provide binaries for Windows 10, Linux, and macOSX. All compiled binaries are x64. See the release section. Alternatively, you can build the patch from source.

Run patcher.exe on windows, or alternatively Patcher on Linux or MacOS. By default, it will locate your Unity install at C:\Program Files\Unity\Editor\Unity.exe, which is obviously wrong for both Linux and macOS, and it will set your theme to dark.

You can pass various arguments to the patcher:

  • exe=|e= to specify the location of the Unity executable
  • theme=|t= to set the theme, currently only light or dark are valid
  • help|h to display the options the patcher supports
  • --windows for Windows builds of Unity
  • --linux for Linux builds of Unity
  • --mac for MacOS builds of Unity
  • --force|--f to gently apply force

Depending on your system, looking up the offsets to patch can take a couple moments.

Unity Versions

The patcher supports multiple versions of Unity. Versions can be specified by passing the -v= or --version= command line argument.

For instance, if you want to patch Unity version 2020.1 on Windows, you'd run:

patcher.exe --windows --version=2020.1 --t=dark

Currently, the following OS and Unity version combinations are supported:

Windows

  • 2020.1
  • 2019.3
  • 2019.2.3f1

Linux

  • 2019.2.3f

MacOS

  • 2019.1.0f2
  • 2019.3.0f6

If you don't specify a version, the patcher will choose a default version.

Troubleshooting

To get the highest chance of success, you should always run the patch on a clean install of Unity. If that doesn't work, you can try:

Issues

If the patcher doesn't work, please let us know by opening an issue, and provide as much details as you can. We provide some issue templates for common issues - please use them when applicable. They help us resolve issues faster.

Linux and MacOS

When running the patcher on Linux or MacOS, be sure to run the respective binaries for your operating system. They are located in osx-x64 for Mac, and linux-x64 for Linux.

  • Mac users should run the patcher with the --mac command line option
  • Linux users should run the patcher with the --linux command line option

For example, on Linux you would run:

sudo ./linux-x64/Patcher -e=/path/to/Unity -t=dark -linux