Search Unity

Exit Codes

Discussion in 'Scripting' started by eklynx, Nov 21, 2011.

  1. eklynx

    eklynx

    Joined:
    Nov 21, 2011
    Posts:
    1
    Is it possible to exit an application made with Unity with a specific exit code? I've tried Environment.Exit() in a script but that seems to lock up the app, not quit it.
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    Application.Quit()

    --Eric
     
  3. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    No it is not possible to send an exit code.