The problem đź’©
Unity
Many projects still rely on older versions of the engine, partially because the recent releases turned out to be rather unstable. Of course they still have the dark theme locked away đź’©
Unity in light mode 🤮
The solution 🎉
Here’s how I reverse engineered Unity to get the dark theme without spending 1.8k a year: (I’m not saying you SHOULD follow these steps one by one but you probably COULD…)
Note: this should work for every Unity version below 2019.4
!
- Get x64dbg
- Create a copy of Unity.exe
- Open the original .exe in x64dbg
- Navigate to the symbols tab an select unity.exe in the left list
- Enter
getskinidx
into the right bottom search bar and double-click the first result - Look for the line
je (or jne) unity.XXXX...
followed byxor eax, eax
andjmp unity.XXXX...
Thisjne
orje
instruction (depending on your version) checks if you have the dark theme enabled. - Right-click the line > Binary > Edit
- At the bottom change the first number from a
74
to a75
or the other way around and click OK - Click the Bandaid Icon at the top to open the Patches dialog and hit Patch File
- Select the copy of Unity.exe
- Close x64dbg and replace the original .exe with the copy (maybe make a backup)
- Enjoy a life without eye strain and bad UX decisions
Hope this helps! If you’re left with any remaining questions, feel free to hit me up