After upgrading my project from 4.13 to 4.14 I found that some of the buttons in my game can’t be clicked when I run it standalone or from a packaged build. After some testing I found that you need to explicitly change the input mode to actually be able to click on buttons in standalone/packaged but don’t in PIE.
I was able to repro this in a brand new project that I am including with this post. The repro steps are:
- Create a new UMG widget, add a button to the canvas panel, bind an event to OnClick that prints a string.
- In BeginPlay of a level blueprint create your new widget and add it to the player’s viewport, set ShowMouseCursor to true.
- Run PIE, click the button and the it prints your message.
- Run Standalone Game, click the button, no message is printed.
I’m not sure but this might be related to this question https://answers.unrealengine.com/questions/510996/widget-buttons-doesnt-respond-in-secondary-pie-win.html