I have a set up where I have multple cameras and they each have their own set of buttons in the gui. The problem that I have is that when I turn the game on, every single gui button is shown regardless of what camera i’m looking through and the only ones that should show are the ones that are of the active camera. I know i’m missing something, but I don’t know what to look for.
How are you selecting the current camera? Depending on the method used, the camera script may still be running, even if the camera itself is not visible on the screen. If you have some boolean variable telling the camera when it’s active, you can use it to enable your OnGUI function:
var cameraActive: boolean;
function OnGUI(){
if (!cameraActive) return; // gets out if camera not active
// your gui code goes here
}