Search Unity

[Universal 10] Game pause when losing focus

Discussion in 'Windows' started by Thien-Le, Nov 2, 2015.

  1. Thien-Le

    Thien-Le

    Joined:
    Jan 25, 2015
    Posts:
    30
    How to keep it running when losing focus?
    I tried check "Run In Background" in Player Setting but it still pause when my game inactive.
    I used this code :
    Code (CSharp):
    1. Application.runInBackground = true;
    but it not work too.
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,918
    You cannot do that with Windows Store apps, that's a restriction from Microsoft.
     
  3. Thien-Le

    Thien-Le

    Joined:
    Jan 25, 2015
    Posts:
    30
  4. Thien-Le

    Thien-Le

    Joined:
    Jan 25, 2015
    Posts:
    30
    Hey @Tomas1856 , I see a lot of game windows store app which can run in background (like Candy Crush Soda). It still update when I click another windows. I just want to disable pausing game when lost focus on Windows 10, not on Windows 10 Mobile.