Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Why are gameobject in different positions in the scene and the game window?

Discussion in '2D' started by Dontom1, Jan 19, 2022.

  1. Dontom1

    Dontom1

    Joined:
    Apr 3, 2021
    Posts:
    2
    It's ridiculous, the gameobject in the game window overlaps the ground, but the scene window is normal. As a result, modifying the scene cannot make the game display properly.
    GIF 2022-1-20 6-56-22.gif
    This is the game window and you can see the possum sinking into the ground.
    GIF 2022-1-20 7-00-15.gif
    But in the scene window everything looks normal, the colliders are touching instead of overlapping.
    This should not be a code problem, could you please give me some advice
     
  2. knobblez

    knobblez

    Joined:
    Nov 26, 2017
    Posts:
    223
    That is probably because you're using a prospective camera rather than orthographic. You probably want orthographic.
    Check your main camera settings and you'll find a dropdown labeled 'Projection'.

    https://docs.unity3d.com/Manual/class-Camera.html