Author Topic: Cannot touch on GUI in NGUI 3.5.8 and Unity 4.5.1 if rotation screen  (Read 5445 times)

HuyThach

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 11
    • View Profile
When I go from a normal Unity scene to NGUI scene with a screen rotation in the Start() function, the touch event is disable. This bug only occurs in iOS not in Android.

For more detail: I have two scenes: a NormalUnityScene and an NGUIScene. In the NormalUnityScene, I set Screen.orientation = ScreenOrientation.LandscapeLeft and in the NGUIScene, I set Screen.orientation = Portrait in the Start() function.
I go from NormalUnityScene to NGUIScene and I touch on a button in NGUIScene but no response.

Our project is using Unity 4.5.1, for some reasons, we could not update to 4.5.2 for using NGUI 3.7.1.
Please help. Thanks in advance.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Cannot touch on GUI in NGUI 3.5.8 and Unity 4.5.1 if rotation screen
« Reply #1 on: September 04, 2014, 10:53:15 AM »
This is a bug in Unity, and it has been covered on this forum at least twice before, including a way around the bug. I believe it's fixed in Unity 4.5.3.

HuyThach

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 11
    • View Profile
Re: Cannot touch on GUI in NGUI 3.5.8 and Unity 4.5.1 if rotation screen
« Reply #2 on: September 05, 2014, 03:09:10 AM »
OK, thank you,
I contacted Unity staffs and they sent me a help.