# Toggling UMG UIs for screenshots

**URL:** <https://forums.unrealengine.com/t/toggling-umg-uis-for-screenshots/292513>\
**Category:** UI\
**Tags:** console-commands, console-command, unreal-engine, UI, question, UMG\
**Created:** [August 31, 2014, 3:16pm UTC](https://forums.unrealengine.com/t/toggling-umg-uis-for-screenshots/292513 "2014-08-31T15:16:39Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_7c9c15f4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7c9c15f4](https://forums.unrealengine.com/u/anonymous_user_7c9c15f4)\
**Post date:** [August 31, 2014, 3:16pm UTC](https://forums.unrealengine.com/t/toggling-umg-uis-for-screenshots/292513/1 "2014-08-31T15:16:39Z")

</div>

I’d like to toggle my UMG authored HUD globally, via a function or console command.

Is there an existing way to do this, or do I need to author something in my blueprint to hide all UMG elements?

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [August 31, 2014, 4:48pm UTC](https://forums.unrealengine.com/t/toggling-umg-uis-for-screenshots/292513/2 "2014-08-31T16:48:01Z")

</div>

May you can add them to an array of Widgets when they are created (added to viewport)  
and remove them if they are removed from the viewport.  
This array could be stored on your character. Now you could make a button that uses  
a flip flop or something like this and go through the array with a for each loop.  
I guess you can use a hide function or something from the widget than.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7c9c15f4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7c9c15f4](https://forums.unrealengine.com/u/anonymous_user_7c9c15f4)\
**Post date:** [August 31, 2014, 6:30pm UTC](https://forums.unrealengine.com/t/toggling-umg-uis-for-screenshots/292513/3 "2014-08-31T18:30:18Z")

</div>

Yeah… that’s what I was hoping to avoid, since the widgets can come from a number of blueprints at any moment. I was hoping there may be a command like “Show UMG” or “toggleui” that would hide everything.

---

<div class="post-metadata">

**Author:** ![eXi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/exi/32/906583_2.png) [@eXi](https://forums.unrealengine.com/u/eXi)\
**Post date:** [August 31, 2014, 6:54pm UTC](https://forums.unrealengine.com/t/toggling-umg-uis-for-screenshots/292513/4 "2014-08-31T18:54:35Z")

</div>

I don’t know if this exists but a widget has an Event that is fired on Construct. Similar to “BeginPlay” it is fired when the Widget is created. So it’s not important what BP creates the widget. You would just let the widget add itself to the array.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f9596ea3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f9596ea3](https://forums.unrealengine.com/u/anonymous_user_f9596ea3)\
**Post date:** [September 28, 2014, 5:02am UTC](https://forums.unrealengine.com/t/toggling-umg-uis-for-screenshots/292513/5 "2014-09-28T05:02:00Z")

</div>

If you use “highresShot” or “highresShot 2” in console command, the UMG UI will not be saved! Only the scene render gets saved… Otherwise, within your UMG Widget Blueprint EventGraph, add a CustomEvent by right clicking and typing “Custom Event”, naming it “ToggleMyMenu”. Let’s assume you have 5 images in your UMG, R1 thru R5… See the image attached, you can first get visibility on R1: 2 is Hidden and 0 is visible… then you can set the visibility on UMG:

 ![16500-screen+shot+2014-09-28+at+12.43.34+am.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/a/3/0a3dbdc5a40299c9a04e12b010684b3038ec6324.png)

Now in your Level Blueprint or class blueprint where you create and display the UMG, you need to cast the CustomEvent ToggleMyMenu and tie it to an event like the Key T. see the image attached:

 ![16521-screen+shot+2014-09-28+at+12.44.31+am.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/7/7/f77e778fb16893a6c20403ea9e8af91473ea2310.png)

Now, you can toggle the UMG off and on using Key T.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7c9c15f4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7c9c15f4](https://forums.unrealengine.com/u/anonymous_user_7c9c15f4)\
**Post date:** [September 28, 2014, 4:19pm UTC](https://forums.unrealengine.com/t/toggling-umg-uis-for-screenshots/292513/6 "2014-09-28T16:19:39Z")

</div>

I ended up doing something very similar to this. Not really all that elegant, since you need to manually manage what gets toggled, and I have lots of elements that can spawn at run time. I wish there was a ‘screenshot mode’ type action that just hid everything, but this works for now.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7c9c15f4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7c9c15f4](https://forums.unrealengine.com/u/anonymous_user_7c9c15f4)\
**Post date:** [September 28, 2014, 10:16pm UTC](https://forums.unrealengine.com/t/toggling-umg-uis-for-screenshots/292513/7 "2014-09-28T22:16:30Z")

</div>

Good to know. I’ve been using nvidia shadowplay to capture footage, and need to suppress the UI for video.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_f9596ea3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_f9596ea3](https://forums.unrealengine.com/u/anonymous_user_f9596ea3)\
**Post date:** [September 28, 2014, 10:24pm UTC](https://forums.unrealengine.com/t/toggling-umg-uis-for-screenshots/292513/8 "2014-09-28T22:24:46Z")

</div>

Ahh, I’m on mac so no nvidia:) I updated the original answer for others that may read this post.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_fbe5155f](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_fbe5155f](https://forums.unrealengine.com/u/anonymous_user_fbe5155f)\
**Post date:** [April 11, 2016, 10:49am UTC](https://forums.unrealengine.com/t/toggling-umg-uis-for-screenshots/292513/9 "2016-04-11T10:49:05Z")

</div>

I found a really easy way to do this, using Find All Widgets of Class

Hope this helps 🙂

 ![86305-toggleumgvisibility.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/b/e/6be30d464cd4dd2bddce39da9520a6799a2a5454.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_43d9bf1e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_43d9bf1e](https://forums.unrealengine.com/u/anonymous_user_43d9bf1e)\
**Post date:** [February 23, 2018, 10:55am UTC](https://forums.unrealengine.com/t/toggling-umg-uis-for-screenshots/292513/10 "2018-02-23T10:55:05Z")

</div>

I have encountered the same problem as yours . I don’t know if you still remember how to solve it .

> **[How hide all UMG in my gameviewport.](https://forums.unrealengine.com/questions/761865/how-hide-all-umg-in-my-gameviewport.html)**
>
> Now I have record a video at runtime , but i can’t hide UMG , maybe I could get all UMG and set visibility . but that’s bad to my project . So I want to use the unreal existing mechanism to achieve it . How to do it?

---

<div class="post-metadata">

**Author:** ![dzarafata](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@dzarafata](https://forums.unrealengine.com/u/dzarafata)\
**Post date:** [October 28, 2025, 2:43pm UTC](https://forums.unrealengine.com/t/toggling-umg-uis-for-screenshots/292513/11 "2025-10-28T14:43:01Z")

</div>

You can hide all slate (and UMG) widgets from viewport with command `Slate.GameLayer.ViewportSlotVisible 0`.

Widgets that are added to screen instead of viewport (eg. Widget component set to Screen Space Mode) can be turned off with command `Slate.GameLayer.PlayerCanvasVisible 0`

You can turn them on again by replacing 0 with 1.

---

<div class="post-metadata">

**Author:** ![Linqen](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/linqen/32/924597_2.png) [@Linqen](https://forums.unrealengine.com/u/Linqen)\
**Post date:** [April 2, 2026, 5:17pm UTC](https://forums.unrealengine.com/t/toggling-umg-uis-for-screenshots/292513/12 "2026-04-02T17:17:01Z")

</div>

What an amazing person! Where have you been all this time? Thank you so much 🙂
