private static void EnableDirectMode() { if (EditorUtility.DisplayDialog("Are you sure?", "Unity might crash. Please save before doing this. Continue?", "Yes", "No")) { // call batch file to enable it MetaDirectModeBridge.CallMetaDirectMode("-enable"); } }
private static void DisableDirectMode() { // call the batch file to turn direct mode on. show the result in the console output. MetaDirectModeBridge.CallMetaDirectMode("-disable"); }