How to get a "Press Any Key to Continue" feature in a Loading Screen from a Main Menu

What I did for this was set focus on the widget in the bp begin play. Then on key down and on lost focus load the next map (or do whatever you want). I tried making the widget hit testable and doing on mouse down but then I hit a stack overflow crash in slate… so i just use on lost focus.

  • Create widget and focus in level bp (ignore media player)
  • In widget construct focus again just to make sure (not sure if this is necessary).
  • Override lost focus event in widget since, if it lost focus, then they must have clicked something.
  • Override function On key down in widget
2 Likes