I'm confused by the camera view

Considering how much I’ve gotten done in the little game I’m doing I feel a bit ridiculous being confused by this camera.

I view a camera as looking at a fixed point and that is what I want. Yet with the main camera, any time I change the Unity Editor size of the scene view (by dragging the edges or in fact by dragging all of Unity to the side while I’m looking at something else) it changes the view of the main camera as well by expanding it out or shrinking it in. What does that mean for the game itself? It is going to be based on how my editor was laid out (that couldn’t possibly be correct)? Is it going to be changed randomly by the device? Or is it going to be off of some settings that I can’t tell because Unity makes it look different when I drag the windows around?

I just want the camera always to be covering the same view area no matter what so that I can align everything correctly.

There are a ton of different screen resolutions and aspect ratios, so you should make your game work on them all by not hard-coding for any particular size. You can assign a particular resolution for the game view, but don’t count on someone having that resolution. It’s generally best if you resize the game view regularly to make sure you’re not hard-coding something.

–Eric

I just found the aspect ratio in the game view tab. Apparently it defaults to Free Aspect which is what makes everything change just from resizing Unity itself, which is definitely not how I would have set it up because it completely messes with you.

The problem I was having is that with the Free Aspect view the main camera literally grows and shrinks it’s view just from resizing Unity. This means that the background would suddenly not be big enough and you would see just the plain color behind it. With one of the aspect views checked, the entire game itself grows or shrinks when resizing Unity which means everything stays in place and the background doesn’t become too small.