Hi, I’d like to ask about the correct workflow when using Linear color space in the game, but Gamma color space in the UI Builder. How can I make sure the UI Builder looks the same as the Game View, and how can I set things up so that I can use colors (including alpha values) defined in tools like Figma while still having them render consistently in the Game View? I know it’s possible to switch PanelSettings to Gamma rendering, but even then I still run into issues with alpha blending. I’ve seen some older topics about this issue, but I was expecting there to be a simple solution — maybe a switch or setting to keep things consistent.
I am using Unity 6.3.
Correct would be to author in the same color space throughout every tool. ![]()
Look into Figma, maybe it provides an option or plugin to enable linear color space authoring. Or use a color profile that (best) matches linear color space. If neither exist perhaps a custom script can convert the output to linear color space.
As far as I know, if we author directly in linear space, then the UI Builder would actually display the wrong result, since its preview always runs in gamma.
Really? I think that’s a setting in Panel Settings.
Unity’s default theme/panel settings should be installed when you first use UI Builder. I remember there’s always a folder appearing with “UnityDefaultTheme” or something assets in it when you start using it.
Panel Settings don’t affect the preview in the UI Builder. From what I understand, Panel Settings asset is not linked to the UI Builder preview at all — the only thing that applies there is the theme, and even that doesn’t change how colors/blending are handled.
Hmmm … and UI Builder also doesn’t follow the color space set in Project Settings / Player? Perhaps if you change that you have to restart the editor before the change comes into effect in the UI.
I’m surprised if it doesn’t. Certainly the editor UI has to adjust to color space or else all Texture previews would be off too.
Yes, that’s what I was originally trying to say.
The UI Builder preview doesn’t respect the project’s color space setting. It makes UI adjustment really difficult when the preview in UI Builder looks different from the actual in-game result. That’s why I’m asking whether I’m doing something wrong or if this is simply the current state I have to accept.
