1 display no cameras rendering

please help me i wanted to create cameras

here is my code:

public class UIController : MonoBehaviour
{
    public GameObject Tablet;
    public GameObject[] Cameras;
    public GameObject Camera;
    private int currentIndex = 0;
   

    public void TabletChangeVisible()
    {
        if (Tablet.activeSelf)
        {
            Tablet.SetActive(false);
            Cameras[currentIndex].SetActive(false);
            Camera.SetActive(true);
        }
        else
        {
            Tablet.SetActive(true);
            Camera.SetActive(false);
            Cameras[currentIndex].SetActive(true);
        }
        void changeCamera(int index)
        {
            Cameras[currentIndex].SetActive(false);
            currentIndex = index;
            Cameras[currentIndex].SetActive(true);
        }
    }
    // Start is called before the first frame update
    void Start()
    {
       
    }

    // Update is called once per frame
    void Update()
    {
       
    }
}

that i can switch on ui buttons

You posted this on the Meta-forum which as you can see is described as a place to discuss forum improvements. not cameras and rendering.

Ignoring that, you don’t describe what the actual problem is or how you’d like others to help.

I’ll move your post to the scripting sub-forum.