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(); }
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(); }