# How to prevent screen space UI elements from moving with the player?

**URL:** <https://forums.unrealengine.com/t/how-to-prevent-screen-space-ui-elements-from-moving-with-the-player/740712>\
**Category:** Blueprint\
**Tags:** unreal-engine, Widget, Blueprint, question, UMG\
**Created:** [January 2, 2023, 8:30pm UTC](https://forums.unrealengine.com/t/how-to-prevent-screen-space-ui-elements-from-moving-with-the-player/740712 "2023-01-02T20:30:31Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [January 3, 2023, 3:12pm UTC](https://forums.unrealengine.com/t/how-to-prevent-screen-space-ui-elements-from-moving-with-the-player/740712/5 "2023-01-03T15:12:16Z")

</div>

- widget components in Screen Space are z-sorted automatically and _follow_ their actors:

But since it’s screen space, they render on top of any geometry.

- they’re also z-sorted in World Space mode, ofc:

But the quads they render on do not rotate to face the camera. There’s a couple of ways to make this happen, ofc.

* * *

You can also disable occlusion:

> [@Is it possible to make 3d UMG widgets never get occluded?](https://forums.unrealengine.com/t/is-it-possible-to-make-3d-umg-widgets-never-get-occluded/408536/2):
>
> Yes. find material in the engine content: Widget3DPassThrough duplicate it and move it to your project. open the material and Disable Depth Test in the advanced part of the Translucency tab assign material to your widget component

* * *

> I tried that, but had issues getting it to display on top of everything properly; maybe I’m missing a setting somewhere to fix that? Screen space just follows my screen as I move.

Perhaps you could demo the undesired behaviour and produce and example of how you’d like to them to behave?

* * *

If you did not want to use a widget component, the actor can shift them around with something similar to this pseduoscript:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/e/2/3e205002dbe67b057c8f5f47c593c8ca9ff83216.jpeg)

This would need to be done every frame and can be written better, ofc.

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-prevent-screen-space-ui-elements-from-moving-with-the-player/740712)._
