How to switch Camera that Game Tab is using in Editor

Hi

I am at the very early stages of learning unity and have a messy playground setup. I have three cameras that I can happily switch to using basic JavaScript in Play using the function keys. I would like the same quick switching whilst in the editor as toggling/adjusting settings in the inspector seems like a very slow method to have quick access to multiple camera views.

Thanks for any help

Rob

public var cam1 : Camera;
public var cam2 : Camera;
public var cam3 : Camera;

function Update () {
    if (Input.GetKeyUp(KeyCode.1)) { //You can can change the key to whatever you want
        cam1.enabled = true;
        cam2.enabled = false;
        cam3.enabled = false;
    }

    if (Input.GetKeyUp(KeyCode.2)) { //You can can change the key to whatever you want
        cam1.enabled = false;
        cam2.enabled = true;
        cam3.enabled = false;
    }

    if (Input.GetKeyUp(KeyCode.3)) { //You can can change the key to whatever you want
        cam1.enabled = false;
        cam2.enabled = false;
        cam3.enabled = true;
    }
}

Put this into a script attached to anything

Assign those Camera variables to their cameras in the inspector.

Make sure that all 3 cameras have their Camera component disabled in the Inspector.

This is working as far as setting up the menu but I still don’t seem to have a way to attach the cameras to this /Editor script

#pragma strict

public static var cam1 : Camera;
public static var cam2 : Camera;
public static var cam3 : Camera;

 
 @MenuItem ("My Cameras/Switch to Camera 1 &1")
 static function EnableCam1() {
    cam1.enabled = true;
	cam2.enabled = false;
	cam3.enabled = false;
 }
  
 @MenuItem ("My Cameras/Switch to Camera 2 &2") 
 static function EnableCam2() {
	cam1.enabled = false;
	cam2.enabled = true;
	cam3.enabled = false;
 }
  
 @MenuItem ("My Cameras/Switch to Camera 3 &3") 
 static function EnableCam3() {
	cam1.enabled = false;
	cam2.enabled = false;
	cam3.enabled = true;
 }

using UnityEngine;
using UnityEditor;

public class SwitchCameras
{
    public static Camera Camera_Close GameObject.FindGameObjectWithTag("Camera_Close").GetComponent(typeof(Camera)) as Camera;
    public static Camera Camera_Far = GameObject.FindGameObjectWithTag("Camera_Far").GetComponent(typeof(Camera)) as Camera;

    [MenuItem ("My Cameras/Switch to Close Camera &1")]
    static void enableCloseCam() 
    {
        Camera_Close.enabled = true;
        Camera_Far.enabled = false;
    }

    [MenuItem ("My Cameras/Switch to Far Camera &2")] 
    static void enableFarCam() 
    {
        Camera_Close.enabled = false;
        Camera_Far.enabled = true;
    }
}