Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

How to check when UWP application becomes constrained

Discussion in 'Windows' started by stingman, Apr 24, 2019.

  1. stingman

    stingman

    Joined:
    Jun 22, 2012
    Posts:
    68
    We are in the process of porting a game to Windows 10 UWP. Just like our Xbox One version of the game, we need to check when the application becomes constrained (Achievement Notification Interaction or Account Picker Overlay for example). To check when the application becomes suspended we use OnApplicationPause and this works fine, but how do we check when the application becomes constrained?

    Thanks for the help.
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    6,502
    You should be able to use "OnApplicationFocus" callback for that.
     
  3. stingman

    stingman

    Joined:
    Jun 22, 2012
    Posts:
    68
    Ah, I completely forgot about that. I'll try it out. Thanks!