Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: HuyThach on September 04, 2014, 05:02:37 AM

Title: Cannot touch on GUI in NGUI 3.5.8 and Unity 4.5.1 if rotation screen
Post by: HuyThach on September 04, 2014, 05:02:37 AM
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.
Title: Re: Cannot touch on GUI in NGUI 3.5.8 and Unity 4.5.1 if rotation screen
Post by: ArenMook 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.
Title: Re: Cannot touch on GUI in NGUI 3.5.8 and Unity 4.5.1 if rotation screen
Post by: HuyThach on September 05, 2014, 03:09:10 AM
OK, thank you,
I contacted Unity staffs and they sent me a help.