Author Topic: panel orientation with device orientation  (Read 2437 times)

skatola

  • Newbie
  • *
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 31
    • View Profile
panel orientation with device orientation
« on: May 26, 2016, 01:22:31 PM »
Hi! I have a problem with the uipanel, hope u can help me : (
i need the panel orientation change with the device orientation but i dunno how can i do that.
there is a panel with a full screen picture on it, when i rotate my mobile device i need the panel and the image rotate with it, just like android or ios gallery, there is a simple way to to that?
thanks a lot!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: panel orientation with device orientation
« Reply #1 on: May 27, 2016, 10:13:59 PM »
Unity rotates the screen automatically, doesn't it? The width and height simply end up swapping.

skatola

  • Newbie
  • *
  • Thank You
  • -Given: 4
  • -Receive: 0
  • Posts: 31
    • View Profile
Re: panel orientation with device orientation
« Reply #2 on: May 28, 2016, 10:25:34 AM »
dunno why, but the canvas don't rotate with all the others element : (

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: panel orientation with device orientation
« Reply #3 on: May 29, 2016, 11:45:22 AM »
Post a pic?