Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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