# \[UMG\] Is there a way to mask background blur widget?

**URL:** <https://forums.unrealengine.com/t/umg-is-there-a-way-to-mask-background-blur-widget/402361>\
**Category:** Rendering\
**Tags:** unreal-engine, blur, UI, question, UMG\
**Created:** [August 20, 2017, 6:58pm UTC](https://forums.unrealengine.com/t/umg-is-there-a-way-to-mask-background-blur-widget/402361 "2017-08-20T18:58:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AmareshB](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/amareshb/32/852526_2.png) [@AmareshB](https://forums.unrealengine.com/u/AmareshB)\
**Post date:** [August 20, 2017, 6:58pm UTC](https://forums.unrealengine.com/t/umg-is-there-a-way-to-mask-background-blur-widget/402361/1 "2017-08-20T18:58:23Z")

</div>

Hey Guys! I’m trying to create an effect where the edges of the screen are blurred in a circular fashion something like [this image](http://1079638729.rsc.cdn77.org/androidgame_img/hitman_sniper/real/5_hitman_sniper.jpg).

I tried using retainer box to mask out the entire widget with a blur background in it. But I’m unable to setup a material successfully that can give me a desired result. So any ideas or solutions are much appreciated.

Thanks.

---

<div class="post-metadata">

**Author:** ![AmareshB](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/amareshb/32/852526_2.png) [@AmareshB](https://forums.unrealengine.com/u/AmareshB)\
**Post date:** [August 22, 2017, 7:04am UTC](https://forums.unrealengine.com/t/umg-is-there-a-way-to-mask-background-blur-widget/402361/2 "2017-08-22T07:04:15Z")

</div>

Just a gentle bump.

---

<div class="post-metadata">

**Author:** ![Flash7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Flash7](https://forums.unrealengine.com/u/Flash7)\
**Post date:** [February 25, 2018, 6:15pm UTC](https://forums.unrealengine.com/t/umg-is-there-a-way-to-mask-background-blur-widget/402361/3 "2018-02-25T18:15:24Z")

</div>

I found the way of making such effect, but I think it can be done more effective:

- make a “sniper” camera and assign a dynamic render texture into it
- make a material that accepts render texture (from camera), and apply all necessary masks
- in umg: make a background blur, add image and assign that material

What is bad in this approach:

- you will render a scene twice: from a main camera and from a sniper camera. In my tests, 4K main camera, and 1024x1024 sniper camera I have 10 FPS drop (from 70 to 60)
- part of the blur (almost 50% of your screen) will be covered by the image from a sniper camera

What would be nice to have: masked blur, to eliminate sniper camera and unnecessary blur.

---

<div class="post-metadata">

**Author:** ![ilike9527](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ilike9527](https://forums.unrealengine.com/u/ilike9527)\
**Post date:** [September 6, 2022, 8:34am UTC](https://forums.unrealengine.com/t/umg-is-there-a-way-to-mask-background-blur-widget/402361/4 "2022-09-06T08:34:02Z")

</div>

The background blur widget in UE5 supports adjusting Corner Radius.  
If you want to apply a mask to control the blur region, see this plugin: [Unreal BackgroundBlur With Mask - YouTube](https://youtu.be/XiJF8kqHW9c)
