- Home /
One camera sees a GUI texture but the other camera does not. I need them both to.
Here's the setup: I made a second camera to only see my weapon (so it doesn't appear that my weapon is going through walls while I play the game), but when I added joysticks (my GUI texture) to the game, I still see the weapon through the joysticks. My main camera sees the joysticks, but my gun camera does not (even with the culling mask set to see the joysticks' layer). ,Here's the setup: I made a camera to only see my weapon (so it doesn't appear that my weapon is going through walls while I play the game), but when I added joysticks to the game, I still see the weapon through the joysticks. I tried setting the joysticks on their own layer and making a camera that only sees that layer, but to no avail. It seems that the main camera is the only camera that can see the joysticks because the moment I change the joysticks' layer, they disappear from the game view.
Answer by fifthknotch · Mar 08, 2014 at 04:30 AM
Just to get an answer on this for future views: I added a GUILayer component to my camera. It is automatically added to the camera by default but I had removed it at some point. Adding it fixed the problem because the joysticks are GUI textures.