popcorn/Editor/EditorRestartUnity.cs

13 lines
352 B
C#
Raw Normal View History

using UnityEngine;
using UnityEditor;
using System.Collections;
using System.Diagnostics;
public class EditorRestartUnity{
[MenuItem("File/Restart")]
static void RestartUnity(){
// 別のUnityを起動したあとに自身を終了
Process.Start(EditorApplication.applicationPath);
EditorApplication.Exit(0);
}
}