Search Unity

Editor Scene Screen and Game screen doesn't show the same thing

Discussion in 'Editor & General Support' started by j3lackfire, Aug 12, 2014.

  1. j3lackfire

    j3lackfire

    Joined:
    Dec 23, 2013
    Posts:
    6
    http://imgur.com/a/2ik5M

    Link of Imgur to the full album with the description.


    ---------


    It's quite hard to explain everything by words. So see it for yourself.

    1. http://i.imgur.com/hFKTjHe.png

    So, this is the back ground for a Game calculating apps I was doing. The backGround transform.position was set to 0.0.0, none rotation. Camera was at 0,0,-13, rotation 0,0,0

    2. http://i.imgur.com/EPwtRj7.png

    So, I add 10 mesh colliders to trigger the touch button action. If you touch the button, it give the result. The mesh collider was place infront of the background at 0,0,-0.5f


    3. http://i.imgur.com/xsekmqM.png

    I want to add more feed back, so in each mesh collider, there is a children sprite accroding to each button. If I touch the button, the sprite would show up for 1 or a half seconds, and then off again. Give the user feel of the button being touched


    4. http://i.imgur.com/TGuiYfe.png

    The scene screen shows well, but the game doesn't


    5. http://i.imgur.com/hr26SCm.png

    So I tried changing the Z value of the sprite. After a while it finally showed up. Its Z position is now -24, which is way behind the camera (-13) but it is shown somehow. And how the hell this boy go UP ? Not, go bigger ?


    6. http://i.imgur.com/cxIcEZe.png

    Move it back a little, it disappears nows.


    7. http://i.imgur.com/2XuHqlW.png

    How about place all the sprites in to see what's up ?
    5,7,8,9 show up, but not in the correct position, why ?


    8. http://i.imgur.com/JNqj1lF.png
    I moved the camera back a little bit. Here's 4 and 6


    9. http://i.imgur.com/EZecnAY.png

    further, hey 1,2,3. 0 is still missing


    10. http://i.imgur.com/uVCaIGr.png

    Found you!!!


    11. http://i.imgur.com/duis3KB.png

    How about moving closer. Well, there was only 8, 5-7 and 9 had gone.


    ------------

    So guys, that's the problem I have encounter. Have any of you had met those werid things some where ? Thanks for all the feedbacks.
     
  2. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    The problem is that your editor view is in 2D(orthographic) mode but your scene camera (main Camera) is in perspective mode and not in 2D(orthographic) mode. That will cause this differences.
     
  3. j3lackfire

    j3lackfire

    Joined:
    Dec 23, 2013
    Posts:
    6
    Wow, thanks man, I changed my camera mode to Orthographic and done, every happend fine.

    But, anyway, I have one more questions, why does things doesn't show like what I wanted them to if I put the camera in perspective mode ?