Author Topic: IOS Screen.orientation = ScreenOrientation.Landscape Error or Bug ?  (Read 3844 times)

ilanb

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 19
    • View Profile
Hello,

I use Autorotation for default orientation with "all allowed orientation" selected. but when I wrote in my script "Screen.orientation = ScreenOrientation.Landscape;" to force it, all event are not enable (NGUI debug log nothing on device)
If I comment //Screen.orientation = ScreenOrientation.Landscape; all work fine... buttons, slider...

UIRoot is fixedSizeOnMobiles 720/320/1536

Unity 4.5.1, IOS 7 on Iphone 5S, NGUIi 3.6.7

Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: IOS Screen.orientation = ScreenOrientation.Landscape Error or Bug ?
« Reply #1 on: July 09, 2014, 03:23:33 PM »
Wasn't there a thread on this a few days ago? It's a bug in Unity that occurs when you switch the orientation via code.

ilanb

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 19
    • View Profile
Re: IOS Screen.orientation = ScreenOrientation.Landscape Error or Bug ?
« Reply #2 on: July 09, 2014, 04:25:43 PM »
Thx Aren, my mistake  :P there is a 452 unity bugs not resolved  ;D