Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Game Development Cameras in Unity Camera Switching Switch Camera Method

Switch Camera -- Full Screen Camera Missing on Start up

I followed the video as closely as possible and whenever I run the game, the active camera zooms out (or backs away from the scene very quickly) until there is nothing but the blue background. The music and the pressing the space bar to play works as it should.

Anyway, if anyone else is having this problem, it’s because somehow all the camera game objects’ position got scrambled. This includes Cameras, Camera 1, and Camera 2. I assuming I forgot to reset the empty Cameras game object’s position after I created it.

The solution is this: All the camera game objects transform position needs to be reset.

Cameras : Position X: 0, Y: 0, Z: 0

Camera 1 : Position X: 20, Y: 14, Z: 10

Camera 2 : Position X: 30, Y: 14, Z: -13.5