I created a custom HUD for a ‘Game Over’ screen with a button to restart the game. The button has an event tied to the ‘On Clicked’ event. To restart the game, I (thought) that what I needed to do was cast to the current game mode and then call the Restart Game function. A screenshot of my blueprint is pasted below. When I click the Restart button, the text “Cast Failed” appears on the screen, which tells me that I’m missing something. Can someone point me in the right direction?
Thank you for taking the time to read this.