# How do I make a ui only appear on a specific level and an alternative ui on the other level?

**URL:** <https://forums.unrealengine.com/t/how-do-i-make-a-ui-only-appear-on-a-specific-level-and-an-alternative-ui-on-the-other-level/2253783>\
**Category:** Blueprint\
**Tags:** unreal-engine, UI, Blueprint, question\
**Created:** [January 1, 2025, 1:17pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-ui-only-appear-on-a-specific-level-and-an-alternative-ui-on-the-other-level/2253783 "2025-01-01T13:17:16Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![massivebootyfloe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@massivebootyfloe](https://forums.unrealengine.com/u/massivebootyfloe)\
**Post date:** [January 1, 2025, 1:17pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-ui-only-appear-on-a-specific-level-and-an-alternative-ui-on-the-other-level/2253783/1 "2025-01-01T13:17:16Z")

</div>

Hello, I made a main menu and a menu that appears when you click escape in the game. When you click on options from the main menu and the escape menu it redirects you to the same options menu but when you go back it also redirects to either main menu or scape menu.

I want the escape menu to appear if you are in the thirdpersonmap and the main menu appear if you are in the main menu map. How can I do this?

This is my code for the backbutton and I was thinking it is maybe possible with a branch:

 ![Screenshot 2025-01-01 141133](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/0/2/402d8e56cde1071f18b2b138011bb205a03e6a39.png)

---

<div class="post-metadata">

**Author:** ![Nawrot](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nawrot/32/618260_2.png) [@Nawrot](https://forums.unrealengine.com/u/Nawrot)\
**Post date:** [January 1, 2025, 1:25pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-ui-only-appear-on-a-specific-level-and-an-alternative-ui-on-the-other-level/2253783/2 "2025-01-01T13:25:51Z")

</div>

Make your own HUD blueprint.

Then use widget switcher:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/9/9/199ba879ac0b1e1fe7c3e9a09b46ba7c35e01b75.jpeg "HTF do I? Use the Widget Switcher in UMG") ](https://www.youtube.com/watch?v=7Mbe-hQl0Yg)

Last part would be adding code to hud blueprint that recognizes loaded level and tells umg to switch widgets.

---

<div class="post-metadata">

**Author:** ![Nightwolf](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nightwolf/32/917179_2.png) [@Nightwolf](https://forums.unrealengine.com/u/Nightwolf)\
**Post date:** [January 1, 2025, 3:39pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-ui-only-appear-on-a-specific-level-and-an-alternative-ui-on-the-other-level/2253783/3 "2025-01-01T15:39:34Z")

</div>

![Screenshot 2025-01-01 093650](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/1/c/11c96f6f48f61886eeb7ef07a4ea8aa70bd38898.png)  
There are many ways… You can use a switch to create a specific widget or as Nawrot Said you can use a hud/widget switcher

---

<div class="post-metadata">

**Author:** ![doctorpepperdan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@doctorpepperdan](https://forums.unrealengine.com/u/doctorpepperdan)\
**Post date:** [January 1, 2025, 8:26pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-ui-only-appear-on-a-specific-level-and-an-alternative-ui-on-the-other-level/2253783/4 "2025-01-01T20:26:41Z")

</div>

You can run a level check on the character class begin play. Or setup a different game modes, one to spawn ui the other to not and assign the appropriate one in the override on the level.

---

<div class="post-metadata">

**Author:** ![massivebootyfloe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@massivebootyfloe](https://forums.unrealengine.com/u/massivebootyfloe)\
**Post date:** [January 9, 2025, 8:42pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-ui-only-appear-on-a-specific-level-and-an-alternative-ui-on-the-other-level/2253783/5 "2025-01-09T20:42:00Z")

</div>

How do you get the switch on string to change from: Case\_0, Case\_1 to the names of the specific levels and what should the print screens settings be?

---

<div class="post-metadata">

**Author:** ![massivebootyfloe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@massivebootyfloe](https://forums.unrealengine.com/u/massivebootyfloe)\
**Post date:** [January 9, 2025, 8:51pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-ui-only-appear-on-a-specific-level-and-an-alternative-ui-on-the-other-level/2253783/6 "2025-01-09T20:51:34Z")

</div>

I managed to find out how to do that and it works now but for some reason I get these errors:

 ![Screenshot 2025-01-09 214859](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/e/c/beca84846153af2ccdb28772b22467dd18191b60.png)

And this is the code I made

 ![Screenshot 2025-01-09 215043](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/4/f/d4fdb42022d9386b4acefb9753297bd54266e656.png)

---

<div class="post-metadata">

**Author:** ![Nightwolf](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nightwolf/32/917179_2.png) [@Nightwolf](https://forums.unrealengine.com/u/Nightwolf)\
**Post date:** [January 11, 2025, 5:36am UTC](https://forums.unrealengine.com/t/how-do-i-make-a-ui-only-appear-on-a-specific-level-and-an-alternative-ui-on-the-other-level/2253783/7 "2025-01-11T05:36:44Z")

</div>

Try having two seperate nodes for add to viewport, its likely trying to add both even tho only one execution path was followed, i should have tested that bit in the code i threw together to show you, but i was mostly trying to show off the switch statement

---

<div class="post-metadata">

**Author:** ![massivebootyfloe](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@massivebootyfloe](https://forums.unrealengine.com/u/massivebootyfloe)\
**Post date:** [January 26, 2025, 2:19pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-ui-only-appear-on-a-specific-level-and-an-alternative-ui-on-the-other-level/2253783/8 "2025-01-26T14:19:21Z")

</div>

still the same error, sorry for the late answer

---

<div class="post-metadata">

**Author:** ![Nightwolf](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nightwolf/32/917179_2.png) [@Nightwolf](https://forums.unrealengine.com/u/Nightwolf)\
**Post date:** [January 26, 2025, 10:02pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-ui-only-appear-on-a-specific-level-and-an-alternative-ui-on-the-other-level/2253783/9 "2025-01-26T22:02:59Z")

</div>

Whats the setup look like now?

Another solution and what i do, is in the main menu level bp have the level bp make the main menu

And if your switching levels the other level can create the other relavant widget

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [February 25, 2025, 10:03pm UTC](https://forums.unrealengine.com/t/how-do-i-make-a-ui-only-appear-on-a-specific-level-and-an-alternative-ui-on-the-other-level/2253783/10 "2025-02-25T22:03:25Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
