Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Windows Store App crash on Application.Quit()

Discussion in 'Windows' started by gianx, Oct 6, 2014.

  1. gianx

    gianx

    Joined:
    May 18, 2014
    Posts:
    5
    hello, I run the debug from visual studio and the game crashes when I run the app Application.Quit() to exit the game.
    What can I use instead of Application.Quit() when the user presses the "Exit" button?
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,647
    It's not recommend to put an Exit button into Windows Store Apps, OS will close your app when needed.
     
  3. jemonsuarez

    jemonsuarez

    Joined:
    Sep 24, 2012
    Posts:
    150
    That's weird, the same Application.Quit() works fine in a Windows Phone device, but crashes in a PC.
     
  4. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,624
    This is by design actually. Don't use that API on Windows Store, it's useless and is in large part against Microsoft guidelines.