Files
BITFALL/Assets/BITKit/UnityPluginsSupport/MonkeyCommand/RestartUnity.cs
CortexCore 45913c6b3e 1
2023-08-23 01:59:40 +08:00

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));
}
}
}