No UI scaling for Linux? You gotta be joking

This problem is as straightforward as it gets: there’s no way of scaling the Unity editor’s UI. No option to change font size, no environment variable which works (GDK_SCALE scales everything except for Unity3D). Changing the monitor scaling to 2x causes the Editor to look blurry (I’m on wayland).
I mean, what’s this supposed to mean: the first search result is some wacky x11 hack? Really?

I’m sorry for the rant but I just wanted to get back into Unity and.. well, I might get back to writing plain Rust code because I can’t physically see the text and the buttons of the editor as they are so small and would require a 2x scaling.

Unity uses the gtk_widget_get_scale_factor function to retrieve the system’s UI scale and uses that number to scale the UI. Could it be this function is not functional on your machine? I believe that is configurable through Gnome settings → Displays.

Linux and Mac needs Preferences > UI Scaling > Use custom scaling value. I don’t think anyone has ever explained why this is possible only on Windows.

Please add this as soon as possible. Recently migrated to linux and the lack of scaling really impedes my ability. Like, cmon, look at this.

I am short sighted but prefer not to wear glasses when using devices as I get headaches. I literally can’t read the asset names.

Even if it was only a font scaling feature that would probably be enough. I can’t see why this wouldn’t be relatively easy to add.

Same issue here. Unity Hub looks okay, but the editor UI and text looks tiny (at least for me) even on a 1920x1080p laptop screen:


I’ve always used 125% scale factor on my Windows machine. Not having this feature makes the editor unusable for me on Linux

It doesn’t look like that is working as intended since the most common workaround is still to manually set GDK_SCALE as OP mentioned, but even then it would be less than adequate since only integer scale factors are allowed.

I think bringing in the custom scaling setting as suggested above would go a long way.

The only way I managed to find a solution was opening unity hub with the following:
GDK_SCALE=2 GDK_DPI_SCALE=0.5 /home/tom/Unity/Hub/Editor/6000.1.8f1/Editor/Unity

Which works for me on 16" 3200 x 2000 screen

Unfortunately, that makes it too big for me to the point it’s unusable

I think I discovered the solution! and its really really ugly. Install windows.

lmao :joy:

..anyways: opening Unity Hub with GDK* env variables doesn’t do anything for me. Nonetheless, if such a solution worked, then it should be a no-brainer for the Unity developers to just add a “scale” slider in the settings which clones the behavior of such variable.

Bump.

We just moved out entire development pipeline over to Linux. The Unity Editor font issue is unacceptable- literally unusable on high resolution monitors.

Unity- Please address this ASAP or we’re going to have to move to Godot.


Same problem here everything is small and no scaling option on Linux.

bumping this so there’s a higher chance this is noticed. i can’t use unity on linux at all, wayland or x11

There are alternative solutions to this problem, but they are neither perfect nor easy to use…

Dear @Unity-Technologies, we really need the “Use custom scaling value” setting to continue using the editor on Linux properly on a recent laptop. Because, honestly, the experience on Linux is currently inferior to Windows, which I think is a real shame.

So I wonder:

  1. What is actually preventing this feature from being implemented in the Linux environment?
  2. If it is possible, is there anything the Linux community can do to help?

Thank you for your attention :smile:

Bump, because GTK scale really doesn’t work for me, fix asap.

Same here. GDX_SCALE and x11 all do not work.
Please just expose the custom scale override.

Is there a specific Unity forum member that works on the Linux compatibility?
I can’t think that exposing the value as a config, even text, given that it’s already been setup in pipeline to grab it using system functions, can be that hard to do :frowning:

The editor is simply unusable on modern laptop hardware.

I’m just trying to move over to linux as well and having the same issue. I’m sing the KDE UI which supports scaling to 150%, but that doesn’t affect GDK stuff. I set the GTK scaling options in /etc/environment, as they didn’t work in the unityhub script.
GDK_SCALE=2
GDK_DPI_SCALE=0.5
Which makes the UI a little too big, defeating the purpose of having the large monitor.
I would like to see some proper support for scaling in Linux too.

I’m not sure why some apps appear to be affected by both the KDE display scaling setting and the gdk scaling. The hub was fine before, after setting the GDK_SCALE it’s huge.

Just wanted to add that Discord has figured out the UI scaling issue on Linux . . . so maybe put someone on this?

Looking at the requirements for Unity on Linux it requires the Gnome desktop. I was using KDE on Pop OS. Switching to the default Pop desktop which is a version of Gnome, I could set the scaling in the Settings app and Unity’s UI scaled accordingly. Switching back to KDE the scaling was lost, but I believe there is a way to get that to work as well.

I did enable experimental Fractional scaling using the command found on this page HiDPI - ArchWiki
Section 2.1.1.2 as I’m using x11, there is a similar option for Wayland. Not sure if that was required or if it would have worked without it.

So it seems if you use the desktop listed under the system requirements Unity does scale for HiDPI displays.