15 lines
381 B
C#
15 lines
381 B
C#
using UnityEngine;
|
|
using UnityEditor;
|
|
using MonKey;
|
|
using MonKey.Editor;
|
|
namespace BITKit
|
|
{
|
|
public class RestartUnity
|
|
{
|
|
[Command(nameof(Restart), "Restart Unity Now", QuickName = "re"), MenuItem("Restart/Now")]
|
|
static void Restart()
|
|
{
|
|
EditorApplication.OpenProject(Application.dataPath.Replace("Assets", string.Empty));
|
|
}
|
|
}
|
|
} |