Example #1
0
 private static void EditModeChanged(Bounds bounds)
 {
     if (EditMode.editMode != EditMode.SceneViewEditMode.None && SceneView.lastActiveSceneView != null && SceneView.lastActiveSceneView.camera != null && !EditMode.SeenByCamera(SceneView.lastActiveSceneView.camera, bounds))
     {
         SceneView.lastActiveSceneView.Frame(bounds, EditorApplication.isPlaying);
     }
     SceneView.RepaintAll();
 }
Example #2
0
 private static void EditModeChanged(Bounds bounds)
 {
     if (EditMode.editMode != EditMode.SceneViewEditMode.None && (UnityEngine.Object)SceneView.lastActiveSceneView != (UnityEngine.Object)null && ((UnityEngine.Object)SceneView.lastActiveSceneView.camera != (UnityEngine.Object)null && !EditMode.SeenByCamera(SceneView.lastActiveSceneView.camera, bounds)))
     {
         SceneView.lastActiveSceneView.Frame(bounds);
     }
     SceneView.RepaintAll();
 }