public void toMainCamera() { if ((cam != null) && (cam.transform != null)) { cam.transform.parent = origParent; Camera.mainCamera.nearClipPlane = origClip; foreach (Camera c in cam.GetComponentsInChildren <Camera>()) { c.fov = origFoV; } cam.setTarget(FlightGlobals.ActiveVessel.transform); if (currentCamera != null) { currentCamera.camActive = false; } currentCamera = null; MapView.EnterMapView(); MapView.ExitMapView(); } }