Inconsistent button behavior between PIE and Standalone/Package

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:

  1. Create a new UMG widget, add a button to the canvas panel, bind an event to OnClick that prints a string.
  2. In BeginPlay of a level blueprint create your new widget and add it to the player’s viewport, set ShowMouseCursor to true.
  3. Run PIE, click the button and the it prints your message.
  4. 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

Hello kgamble,

The link that you provided appears to have the same root cause for the issue that you are experiencing. Thank you for providing additional information.

Make it a great day