# How can I delete background of Menu Anchor Pop-up?

**URL:** <https://forums.unrealengine.com/t/how-can-i-delete-background-of-menu-anchor-pop-up/751059>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, Widget, question, UMG\
**Created:** [January 17, 2023, 8:12am UTC](https://forums.unrealengine.com/t/how-can-i-delete-background-of-menu-anchor-pop-up/751059 "2023-01-17T08:12:22Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![mdy356](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mdy356](https://forums.unrealengine.com/u/mdy356)\
**Post date:** [January 17, 2023, 8:12am UTC](https://forums.unrealengine.com/t/how-can-i-delete-background-of-menu-anchor-pop-up/751059/1 "2023-01-17T08:12:22Z")

</div>

How can I clear the background color from a popup brought up by a menu anchor?  
I just want the background color to be transparent, but I don’t see an option to clear the background color in the menu anchor’s Details panel.

- I made Round shape border widget, but menu anchor made a box background automatically.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/1/8/218f7515b6466d676ee0220de2039133fa1d36be.png)

---

<div class="post-metadata">

**Author:** ![mshvern](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mshvern](https://forums.unrealengine.com/u/mshvern)\
**Post date:** [February 1, 2023, 2:29am UTC](https://forums.unrealengine.com/t/how-can-i-delete-background-of-menu-anchor-pop-up/751059/2 "2023-02-01T02:29:59Z")

</div>

Having the same issue although in my case the background is grey. I have nothing that looks like it and I can’t find a way to turn it off. If I put the same widget somewhere else without using the anchor menu, the background is gone.

---

<div class="post-metadata">

**Author:** ![matthew9090](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@matthew9090](https://forums.unrealengine.com/u/matthew9090)\
**Post date:** [March 1, 2023, 3:19pm UTC](https://forums.unrealengine.com/t/how-can-i-delete-background-of-menu-anchor-pop-up/751059/3 "2023-03-01T15:19:45Z")

</div>

Turning off “Use Application Menu Stack” in the menu anchor advanced settings fixes this for me.

---

<div class="post-metadata">

**Author:** ![LeFxPete](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LeFxPete](https://forums.unrealengine.com/u/LeFxPete)\
**Post date:** [April 5, 2023, 1:35pm UTC](https://forums.unrealengine.com/t/how-can-i-delete-background-of-menu-anchor-pop-up/751059/4 "2023-04-05T13:35:19Z")

</div>

Ran into the same problem upgrading 4.27 widgets to 5.1 today as this broke our whole UMG screen setup.

It seems like, that if u want to use application menu stack, you’re forced to live with the background image enclosing your menu content.

This is a change/regression from 4.27-\>5.X, as they hardcoded to use fixed overlay images behind the actual menu content, when using the menu stack (see Engine\Source\Runtime\Slate\Private\Framework\Application\MenuStack.cpp:115)

Left side is 4.27, right side is 5.1, with newly added solid background

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/f/c/0fcde507b145f45568eb41f53d769e00d69de121.png)

In comparison, in 4.27 they just added the menu content directly to the containing widget, allowing us to customize the appearance as we liked.

Not too sure, why they decided to do this, however without changing the engine source code, we’re stuck with this behaviour. You could overlap the background with a solid background of your own inside the menu content widget, which stretches to all edges, but this is not solving the problem in the first place.  
Afaik not using application menu stack for the menu anchor is the only way to currently have full control over the widget design, e.g. having the background transparent.

Cheers

---

<div class="post-metadata">

**Author:** ![wade0608](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@wade0608](https://forums.unrealengine.com/u/wade0608)\
**Post date:** [July 3, 2023, 2:33am UTC](https://forums.unrealengine.com/t/how-can-i-delete-background-of-menu-anchor-pop-up/751059/5 "2023-07-03T02:33:50Z")

</div>

> [@matthew9090](#):
>
> Turning off “Use Application Menu Stack” in the menu anchor advanced settings

Although I disable the background color.  
But, I just can pop up this widget once, how can I duplicate the pop-up?

@Everynone Do you have any suggestion?

---

<div class="post-metadata">

**Author:** ![Elathan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Elathan](https://forums.unrealengine.com/u/Elathan)\
**Post date:** [September 14, 2024, 8:04am UTC](https://forums.unrealengine.com/t/how-can-i-delete-background-of-menu-anchor-pop-up/751059/6 "2024-09-14T08:04:31Z")

</div>

I am a bit late to the party, but a possible solution without losing the advantages of the menu stack is to walk up in the slate widget hierarchy and hide the images. Example code:

```auto
void UMyEpicFunctionLibrary::RemoveMenuStackBackground(UWidget* Widget)
{
	if (Widget == nullptr)
	{
		return;
	}
	
	SOverlay* FirstOverlay = nullptr;
	for (TSharedPtr<SWidget> SlateWidget = Widget->GetCachedWidget(); SlateWidget.IsValid(); SlateWidget = SlateWidget->GetParentWidget())
	{
		if (SlateWidget->GetType() == "SOverlay")
		{
			FirstOverlay = static_cast<SOverlay*>(SlateWidget.Get());
			break;
		}
	}

	if (FirstOverlay == nullptr)
	{
		return;
	}

	FChildren* ChildrenPtr = FirstOverlay->GetChildren();
	if (ChildrenPtr == nullptr)
	{
		return;
	}

	for (int32 i = 0; i < ChildrenPtr->Num(); ++i)
	{
		TSharedRef<SWidget> OverlayChild = ChildrenPtr->GetChildAt(i);
		if (OverlayChild->GetType() == FName("SImage"))
		{
			SImage* Image = static_cast<SImage*>(OverlayChild.ToSharedPtr().Get());
			Image->SetVisibility(EVisibility::Hidden);
		}
	}
}

```

Unfortunately it does not work in OnConstruct yet, because the slate widget does not have its parent set. One frame delay would lead to a visual glitch. After some debugging I found a glitch free solution:

- Set the widget to Focusable
- Call the function from `NativeOnFocusReceived` (C++) or from `OnFocusReceived` (BP).

---

<div class="post-metadata">

**Author:** ![oO\_Sykes\_Oo](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@oO\_Sykes\_Oo](https://forums.unrealengine.com/u/oO_Sykes_Oo)\
**Post date:** [December 18, 2024, 1:36am UTC](https://forums.unrealengine.com/t/how-can-i-delete-background-of-menu-anchor-pop-up/751059/7 "2024-12-18T01:36:11Z")

</div>

[https://github.com/EpicGames/UnrealEngine/commit/d29338a7939ba47a94aeef66910ad59bdab5a577](https://github.com/EpicGames/UnrealEngine/commit/d29338a7939ba47a94aeef66910ad59bdab5a577)

Looks like epic has added `if (InArgs._bShowBackground)`

Figuring out how to use this now.

---

<div class="post-metadata">

**Author:** ![user\_c8b002860d9ed694eb8b02b3d92ba8523df492965a6a07f637134c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@user\_c8b002860d9ed694eb8b02b3d92ba8523df492965a6a07f637134c](https://forums.unrealengine.com/u/user_c8b002860d9ed694eb8b02b3d92ba8523df492965a6a07f637134c)\
**Post date:** [December 25, 2024, 3:59pm UTC](https://forums.unrealengine.com/t/how-can-i-delete-background-of-menu-anchor-pop-up/751059/8 "2024-12-25T15:59:37Z")

</div>

“You can set the Padding of the RootWidgetComponent of your popped-up UI widget to a negative value, which will allow you to override the default background.”

---

<div class="post-metadata">

**Author:** ![Ken.Brueck](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ken.Brueck](https://forums.unrealengine.com/u/Ken.Brueck)\
**Post date:** [March 20, 2025, 1:46pm UTC](https://forums.unrealengine.com/t/how-can-i-delete-background-of-menu-anchor-pop-up/751059/9 "2025-03-20T13:46:07Z")

</div>

Did you ever figure out how to turn off the background on widgets spawned from menu anchors?

---

<div class="post-metadata">

**Author:** ![fxps1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fxps1](https://forums.unrealengine.com/u/fxps1)\
**Post date:** [October 20, 2025, 10:31am UTC](https://forums.unrealengine.com/t/how-can-i-delete-background-of-menu-anchor-pop-up/751059/10 "2025-10-20T10:31:10Z")

</div>

1. Modify the UMenuAnchor in the UE5.x engine
2. Add a custom UMyMenuAnchor

Choose either of the above methods.

The modification methods are the same for both. Below is the modification for method 2.

[//MyMenuAnchor.h](https://MyMenuAnchor.h)

protected:  
virtual TSharedRef RebuildWidget() override;

public:  
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=“Menu Anchor”)  
bool bShowMenuBackground = false;

[//MyMenuAnchor.cpp](https://MyMenuAnchor.cpp)

TSharedRef UMyMenuAnchor::RebuildWidget()  
{  
TSharedRef Widget = Super::RebuildWidget();

```auto
if (MyMenuAnchor.IsValid())
{
    if (IMenuHost* MenuHost = MyMenuAnchor.Get())
    {
        MenuHost->bShowMenuBackground = bShowMenuBackground;
    }
}

return Widget;

```

}
