game camera is ser to 600x900 but build shows objects outside this resolution

I followed the space shooter tutorial, redid the art and added another villain level. Now I am building it and am having an issue. The game camera in Unity only sees what is inside the 600 x 900 rectangle. Like this:

the stars are cut off at the edge, as are the asteroids. but the build sees outside the camera like this:

how do i get the build to lock to the game camera resolution?
thanks.

Go to: File → Build Settings → Player Settings

Depending on your target platform you should do different things.

If your target platform is standalone then I believe to get what you want you should uncheck ‘Default is native resolution’ and set your specific resolution there.

But I guess you are publishing for web, so then it should be as simple as to go to ‘Settings for web player’ and fill in your resolution there.

But you might want to check some of the other options in that window to get exactly what you want.