Search Unity

Photo orientation problems on Raw Image

Discussion in 'UGUI & TextMesh Pro' started by elpuerco63, Apr 2, 2017.

  1. elpuerco63

    elpuerco63

    Joined:
    Jun 26, 2014
    Posts:
    271
    I have a Raw Image in my scene that I use to display photos taken from the camera but am having issues with orientation.

    If I have the pivot at top left and the anchors centre top.

    When I take a portrait photo it appears correctly in my scene in portrait and correctly when rotating to landscape where the photo is positioned and scaled to the centre of screen with blank portions to the left and right of the photo.

    But if I take a photo in landscape the photo is placed in the texture in portrait, so the photo appears rotated anti clockwise 90 degrees. If I rotate the phone to landscape the texture adjusts correctly to be centred with the padding but the photo is still the wrong orientation?

    If I edit the texture in Editor so a landscape photo appears correctly then the portrait one goes wrong?

    Any ideas?
     
    ROBYER1 likes this.