Unity Editor: Button to restart unity.

Hi people. I have a little problem with my installed version of unity 3.5.7, it sometimes just stops working and freezes a lot. The problem is caused because ( I think ) have a lot of plugins installed in my project.

I have to keep saving the project several times in order to keep my project safe from this crashes. The thing is that if unity freezes, I have to use the Force Quit window of osx to reopen unity again, and when I quit unity in this way, the project is not completely saved. If I reopen the project, the changes I had before the crash are lost, its like the save project button in the menu were not really saving the project, but waiting until unity closes itself that the project changes are commited.

In order to fix this I decided to restart unity each time I save ( its not frustrating since a Solid State Drive does well the job loading everything ), so I do the following:

  1. Save scene
  2. Save project
  3. close unity
  4. open unity

I already know how to save a scene ( and save a project too, I think -_- ) in code.

The question is: Is it posible to code that unity close itself and reopens itself again. Like firefox when you restart it; and put all this steps together to create my custom “Save” button.

Thanks.

I think you would want to launch an external program, probably .bat or other simple script, that opens unity.