Skip to content

UI troubleshooting

Ilja Jusupov edited this page Mar 14, 2024 · 1 revision

Drawn images look darker in semi-transparent areas

If you have an image which, when drawn, looks like this:

image

instead of this:

image

simply surround drawing with ui.beginPremultipliedAlphaTexture()/ui.endPremultipliedAlphaTexture(), as it is a good sign you’re dealing with image with premultiplied alpha.

Clone this wiki locally