- Home /
How to handle window button in Windows Phone?
If I press window/home button on my windows phone mid-game, it takes me to the start screen but it doesn't pause the game. Thus, when I get back to my game, it just continues from where I had left off.
I want to pause the game if the player opens another app, or gets a call, or anything..
Answer by leestott · Apr 23, 2015 at 03:23 PM
Hi see the following guides at
http://unity3d.com/pages/windows/porting
The windows phone one is here and has a full section on back button support http://az527613.vo.msecnd.net/wpchallengefiles/PortingTipsWindowsPhoneUnity01.pdf,
Answer by G-S-Pratap · Sep 27, 2016 at 09:48 AM
Hi,
Use OnApplicationFocus() method to pause/unpause your game.
Your answer
![](https://koobas.hobune.stream/wayback/20220613122516im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Windows Store App Encryption 2 Answers
Saved files deleted after creating a new build 0 Answers
Windows phone 8 build fail: Assembly-UnityScript.dll is built in debug mode 0 Answers
The errors when I build my project for winphone 8 with electrotank library ! 0 Answers
Modify vertex position using shaders on Windows Phone 8 0 Answers