Game Objects appear in Scene but not in Game view (139203)

I started studying Unity and I try to make my first game in 2D with top down view and I have a problem. When I put GAme view I see only background and object is invisible. I found solution where is written that I Must change position Z of camera, less than position of object. So I wrote position of object 0 and position of main camera -1, but when I click on play button, position of object start equaling position of main camera(-1) and I still can’t see the object.

is it the object a son of the camera? In this case what you are watching in the inspector is the local position. If not probably you have some script there moving something

3 Answers

3

Your Camera and your Object can’t be on the same place, or the camera won’t see it. You should try to move your object while looking the game window to find where it appears.

Try to set the z axis to -10 of your main camera in transform properties.

If you select the camera in the hierarchy you’ll see the camera’s frustum in the Scene view (Unity - Manual: Understanding the View Frustum).

The camera will “see” anything inside the frustum as long as it’s not masked by the layer configuration.

You can move the camera to make things fit inside the frustum, but you can also change the frustum shape. Usually you change the near and far planes position, changing the width and height might give a distorted result.

So, select the camera and make sure the objects you want to see are inside the frustum, then check that the Layer of the objects is selected in the “Culling Mask” property of the camera.