1
This commit is contained in:
15
Unity/Extensions/MonkeyCommand/RestartUnity.cs
Normal file
15
Unity/Extensions/MonkeyCommand/RestartUnity.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
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));
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user