Download

Need BP node for when game loses focus on Android devices.

Greetings,

Can’t find this anywhere, and have been trying all the other locations that I can think of.

What I’m trying to accomplish is: Whenever someone quits playing my game by leaving it, or killing it, the game needs to perform a quick “Save” for the scores.

This is easy to accomplish on the PC version of the game, but I’m trying to make this game universal and I don’t want to have a Quit and Save button for something that I should be able to automate by a message the game receives just before losing focus. I’ve tried various events such as “Android Back” and “Android Menu” and “On Destroy” and “Event End Play” but nothing seems to work.

Thanks!

-Marc

Did you try the Application Lifecycle Component?

https://docs.unrealengine.com/latest/INT/Engine/Components/Utility/

check out the source code for match 3 - it uses c++ but it does provide this