예제 #1
0
 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");
     }
 }
예제 #2
0
 private static void DisableDirectMode()
 {
     // call the batch file to turn direct mode on. show the result in the console output.
     MetaDirectModeBridge.CallMetaDirectMode("-disable");
 }