Standalone disable crash message
I have a unity program that has to be enabled all the time, so when it crashes, it automatically has to restart.
I currently have a batch file that restarts the build executable when the taskmanager has no process by the name of the build. However, this does not work, because when the build crashes it displays a crash message, not removing the process out of the tasklist.
Is there a way to remove the crash log message or another way to check if the project is still running?
Answer by aviita · Oct 31, 2017 at 10:24 AM
Unity does have the command line option to crash silently. Since you are running unity from batch file it should be simple to for you to add the command line argument:
-silent-crashes
It seems as if it was meant to suppress crash messages for editor (link you’ve given is to “Advanced Editor Topics”). Any way to do it for builded executable (i.e. game)?
Your answer
![](https://koobas.hobune.stream/wayback/20220612095449im_/https://answers.unity.com/themes/thub/images/avi.jpg)