Esempio n. 1
0
 private static void DetectMainToolChange()
 {
     if (Tools.current != Tool.None && EditMode.editMode != EditMode.SceneViewEditMode.None)
     {
         EditMode.EndSceneViewEditing();
     }
 }
Esempio n. 2
0
 public static void QuitEditMode()
 {
     if (Tools.current == Tool.None && EditMode.editMode != EditMode.SceneViewEditMode.None)
     {
         EditMode.ResetToolToPrevious();
     }
     EditMode.EndSceneViewEditing();
 }
Esempio n. 3
0
 private static void DetectMainToolChange()
 {
     if (Tools.current == Tool.None || EditMode.editMode == EditMode.SceneViewEditMode.None)
     {
         return;
     }
     EditMode.EndSceneViewEditing();
 }