namespace
This commit is contained in:
parent
686e82ac39
commit
b15998bb09
@ -6,19 +6,22 @@ using UnityEditor;
|
|||||||
/// This editor utility can lock/unlock unity script compile from menu item.
|
/// This editor utility can lock/unlock unity script compile from menu item.
|
||||||
/// See more https://raspberly.hateblo.jp/entry/InvalidateUnityCompile
|
/// See more https://raspberly.hateblo.jp/entry/InvalidateUnityCompile
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static class CompileLocker {
|
namespace AsmdefHelper.CompileLocker.Editor {
|
||||||
const string menuPath = "Window/Asmdef Helper/Compile Lock";
|
public static class CompileLocker {
|
||||||
[MenuItem("Window/Asmdef Helper/Compile Lock", false, 1)]
|
const string menuPath = "Window/Asmdef Helper/Compile Lock";
|
||||||
static void Lock() {
|
|
||||||
var isLocked = Menu.GetChecked(menuPath);
|
[MenuItem("Window/Asmdef Helper/Compile Lock", false, 1)]
|
||||||
if (isLocked) {
|
static void Lock() {
|
||||||
Debug.Log("Compile Unlocked");
|
var isLocked = Menu.GetChecked(menuPath);
|
||||||
EditorApplication.UnlockReloadAssemblies();
|
if (isLocked) {
|
||||||
Menu.SetChecked(menuPath, false);
|
Debug.Log("Compile Unlocked");
|
||||||
} else {
|
EditorApplication.UnlockReloadAssemblies();
|
||||||
Debug.Log("Compile Locked");
|
Menu.SetChecked(menuPath, false);
|
||||||
EditorApplication.LockReloadAssemblies();
|
} else {
|
||||||
Menu.SetChecked(menuPath, true);
|
Debug.Log("Compile Locked");
|
||||||
|
EditorApplication.LockReloadAssemblies();
|
||||||
|
Menu.SetChecked(menuPath, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user