# Widget screen space distortion

**URL:** <https://forums.unrealengine.com/t/widget-screen-space-distortion/473720>\
**Category:** UI\
**Tags:** screen-space, health-bar, unreal-engine, Widget, question\
**Created:** [October 30, 2020, 1:25am UTC](https://forums.unrealengine.com/t/widget-screen-space-distortion/473720 "2020-10-30T01:25:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moghura](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/moghura/32/1176607_2.png) [@Moghura](https://forums.unrealengine.com/u/Moghura)\
**Post date:** [October 30, 2020, 1:25am UTC](https://forums.unrealengine.com/t/widget-screen-space-distortion/473720/1 "2020-10-30T01:25:36Z")

</div>

Does widgets in-game when using screen space have some form of distortion? In the images below you can see my widget in-editor vs in-game, the “bars” in my health bar behave weirdly and have no consistency in shape, some of then even get completely invisible some times. Why does this happen, and how to deal with it?

In Editor:

 ![320540-normal.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/6/e/c6e25f5e4a938c4294e219a86eae0a3c725943ac.png)

In Game:

![320561-weird.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/5/e/75eeb7b553a51223ece6c51ebf8f937f327cf31b.png)

Goal:

![320562-ras6cnt.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/e/c/9ec2c2c06a55a43b92b04ff3c40a69a33ce6a44b.png)

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [October 30, 2020, 9:31am UTC](https://forums.unrealengine.com/t/widget-screen-space-distortion/473720/2 "2020-10-30T09:31:21Z")

</div>

Pixels shift when you squish them.

![320574-screenshot-2020-10-30-093051.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/4/3/343916a6e941dc3bf5286c1397bc424119ad4fb9.jpeg)

Try running the game like this and compare. How does it look?

Also, seeing this is a widget component (or is it screen mode?), what is the size of that quad and what is desired size of the widget?

---

<div class="post-metadata">

**Author:** ![Moghura](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/moghura/32/1176607_2.png) [@Moghura](https://forums.unrealengine.com/u/Moghura)\
**Post date:** [October 30, 2020, 5:49pm UTC](https://forums.unrealengine.com/t/widget-screen-space-distortion/473720/3 "2020-10-30T17:49:03Z")

</div>

Play in Standalone Game didn’t make much difference. It’s a widget component with a desired size of X: 75 Y: 10. The quad as a size of X: 1 Y: 7.

---

<div class="post-metadata">

**Author:** ![Moghura](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/moghura/32/1176607_2.png) [@Moghura](https://forums.unrealengine.com/u/Moghura)\
**Post date:** [October 30, 2020, 6:52pm UTC](https://forums.unrealengine.com/t/widget-screen-space-distortion/473720/4 "2020-10-30T18:52:48Z")

</div>

I would guess resolution as something to do with it

This is in 1080p:

![320644-1080.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/0/2806051f8ec3bd07c6bb6681dbfecc074263e3bf.png)

This is in 720p:

![320645-720.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/e/c/1ecd0d0f934433bb4d95bbf7d68eced773d68632.png)

One bar went completely missing by just changing the resolution of the game window.

How does games like League of Legends deal with this? I can play LoL with a 720p window and the floating life bars still keep their shape. Maybe change widget draw size each time the window is resized?
