Search Unity

On mobile device: Landscape rotation changes has an offset depending on which side

Discussion in 'Android' started by AM-Dev, Sep 7, 2016.

  1. AM-Dev

    AM-Dev

    Joined:
    Aug 5, 2015
    Posts:
    31
    Hi guys,
    I've got this problem with my 3D content which is fixed to the camera. Depending on which side I rotate the mobile device (landscape left or right) I have this offset. I tried to google for the problem but didn't came up with the right search words/phrase I guess.

    It's working fine in Unity Editor:
    2016-09-07_unity-editor.jpg
    You can see that the white UI box fits on both sides of the of the black/gray 3D model which is in front of the camera.

    Now on a mobile device (Android and iOS), I get this frustrating offset to one side:
    Screenshot_landscape-left.jpg
    Here (landscape left) you see that the 3D model is not centered anymore. Instead it's bit off to the left.

    And the same goes for landscape right, with an offset to the right:
    Screenshot_landscape-right.jpg

    Any idea why this is and what I can test to get rid of the offset?
    As you can see this is an Augmented Reality App using vuforia 6.0
    Using Unity 5.4.0f3

    Thanks
     
  2. AM-Dev

    AM-Dev

    Joined:
    Aug 5, 2015
    Posts:
    31