I’m not sure if this is a bug or just how this is supposed to work, but the “gamma” setting does not affect text in widgets. It does affect everything else, though (well except images that are in B8G8R8A8 format but at least I think I can fix that myself).
Is this normal? I’m using gamma as a brightness setting in my options menu.
I have a few questions for you that will help narrow down what issue it is that you are experiencing. I would like to know more about how exactly you achieving the results that you are getting.
Quick questions:
Can you reproduce this issue in a clean project?
If so, could you provide a detailed list of steps in order to reproduce this issue on our end?
Are you using widgets that are in screen space or are you using 3D widgets?
Can you provide screen shots of any blueprints that may be involved with this issue?
2 - Simply put some text in a UMG widget, add the widget to the viewport, and type “gamma 0” in the console. Typing “gamma” again will revert to the default value.
3 - Only screen space.
While reproducing this in a new project I noticed that gamma does affect text and non-texture images (blank image widget components), but not in the way I expected. It will not affect pure white values, but if there is some color in the text or image, it will affect it.
I don’t know exactly how gamma works but obviously its not able to decrease the brightness of something that is pure white. I only use white or black text in my real project so I never noticed that it works on colored text.
So I guess this is just how gamma works?
Below are examples of white text/blank image/real image vs colored text, with gamma 0 and the default gamma (2.25). As you can see even the white outline of my texture is not affected, even though the red fill is.
After doing a bit of digging I found that it is working as intended. UMG should not be affected by gamma correction. The fact that the widgets are being affected was an issue that was resolved internally. This will be implemented in a later release of the engine. I did confirm that if you add any colors or tones to the whites in your widget that it will be affect by the gamma correction. I hope that this information helps.