# Importing HUD Widget into the GameMode's constructor

**URL:** <https://forums.unrealengine.com/t/importing-hud-widget-into-the-gamemodes-constructor/309024>\
**Category:** UI\
**Tags:** hud, unreal-engine, Widget, UE4, CPP, question\
**Created:** [March 3, 2015, 11:15pm UTC](https://forums.unrealengine.com/t/importing-hud-widget-into-the-gamemodes-constructor/309024 "2015-03-03T23:15:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaxL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MaxL](https://forums.unrealengine.com/u/MaxL)\
**Post date:** [March 3, 2015, 11:15pm UTC](https://forums.unrealengine.com/t/importing-hud-widget-into-the-gamemodes-constructor/309024/1 "2015-03-03T23:15:06Z")

</div>

> **[ConstructorHelpers::FObjectFinder MainMenuHUD(TEXT("Blueprint'/Game/MainM -...](https://pastebin.com/s2sgh6E5)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

I tried many combinations and searched online for a while to come up with a solution that works. Nothing did; I either get a crash on compilation or UE4 fails to find the asset I’m referencing. Is this not the correct way to import a widget asset?

The widget contains buttons for a simple menu; new game, load game, etc. Upon clicking these buttons I’d like to receive an event or such in C++ so I can react to it. How can I do this?
