finding the active camera

i havemultiple cameras in my scene but only one is active at a time. i need to be able to find the active camera from a script. thats pretty much it.

What are you using to make only one camera active at a time? If you have a camera system switching them on or off, that system will know which one is active, and could be made to give that information. Maybe it can set the MainCamera tag on the object as it activates them, and you could use Camera.main to access it then.

currently i have a level switcher script that enabled and dissables the levels and the cameras are in the levels so they are dissabled. i could get the level value from the level switcher and send it to the script that needs the camera and find the camera associatedwith that level