Search Unity

Game closes when exception happens

Discussion in 'Android' started by unitynewb, May 8, 2017.

  1. unitynewb


    Feb 22, 2009
    I know that I should prevent exceptions in my app, but there are times where I may introduce a bug without being aware and I get complaints from users that the app closes on them.

    I don't have too many of them so I can solve them as they happen and usually not too many people are affected, but I think I remember in the past when there was an exception the app would continue to run, but looks like that changed. One thing I did change that may have affected this was I changed my scripting backend to IL2CPP.

    Is there a way to have it not crash when an exception is thrown? Some of the exceptions I have encountered are not showstoppers and if that piece of code did not fire, I am ok with the game continuing for the user.