3

I'm developing a unity game for android and I'm looking for a way to pause the game whenever a notification pops up on the screen.

This is troublesome because pause menu button is at the top of screen and therefore lies behind the popup message and player cannot click on it.

I already implemented OnApplicationFocus() and successfully pause the game. However I also want to pause in these kind of occasions.

enter image description here

I found this answer for monitoring battery level but I'm looking for a general way for recognizing all kinds of popups.

Community
  • 1
  • 1
Bizhan
  • 16,157
  • 9
  • 63
  • 101

0 Answers0