Widget not being created at BeginPlay in GameModeBP

Hello all,

I am creating a pinball game and I am attempting to make my main menu appear at the beginning of the game when I hit play but it is not appearing for some reason.

There is no code in my MainMenu Widget besides a textbox and a button
I call the “Main” function at the end of the game (when you run out of balls) and that works fine, so I don’t understand why it doesn’t work when I call it at the beginning. Please let me know if you see any problems and feel free to ask for clarification.

Thank you so much!

Is Casting successful?

I believ so but how could I make sure of it?

There’s the Success bool output pin, you can check its value on casting, Or you can convert it back into impure cast, and there will be an output execution pin that’s activated is casting is unsuccessful.

Yea casting is successful

Hi all,

I found the issue. I was calling a similar function in the controller BP which removed all the widgets. This was removing the main menu widget at the start of the game.

Thank you all for your time.