How do I set the main camera without using gameObject.active = false or true;?
Camera.main is
The first enabled camera tagged "MainCamera" (Read Only)
Therefore, you just change the tag of the camera you want to be it, and the tag of the one that had previously been it.
The best and easiest way to do it… just go into another scene you have, copy the main camera, go back to the scene where you have deleted it and paste it.
I like using (your gameobject).camera.enabled = true; to activate and deactivate cameras. This way you can keep the game objects active and just enable and disable the camera component to “switch” between cameras. (Note that now the proper syntax is to get the camera component using GetComponent)