Author Topic: Unity 5 / Android Buttons not working  (Read 7353 times)

rich.sunandmoon

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 1
    • View Profile
Unity 5 / Android Buttons not working
« on: February 27, 2015, 01:10:02 PM »
UPDATE:  Fixed in UNITY 5 Release version

Hi,

I'm having problems using NGUI in Unity 5 / Android, where buttons dont work when played on my device. I'm updating a previous app made in Unity 4 / NGUI

As a simple example - Using Unity 5. Build one of the NGUI example interaction scenes (I used the scroll view example) into and app and run it on an android device. The buttons are unresponsive for me, as if the touch events or colliders aren't working. When I play in the editor it works fine.

Can anyone confirm they also get theis problem?

Many Thanks

 
« Last Edit: March 06, 2015, 11:50:42 AM by rich.sunandmoon »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Unity 5 / Android Buttons not working
« Reply #1 on: March 01, 2015, 05:09:19 PM »
It's probably the same regression bug that Unity introduced back in 4.6 and never bothered fixing. Basically any time screen resolution changes, the colliders, although updated properly by NGUI, don't seem to get updated in Unity itself, so it thinks that colliders are still in wrong places. Everything worked properly in Unity 4.5.

Magic Frame

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 30
    • View Profile
Re: Unity 5 / Android Buttons not working
« Reply #2 on: March 10, 2015, 03:28:27 AM »
Hi I have the same problem now, and I have the latest version Unity... Any help?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Unity 5 / Android Buttons not working
« Reply #3 on: March 10, 2015, 08:21:03 PM »
Rich mentioned that it's fixed in the latest Unity 5 version. What are you using now, Magic?

Magic Frame

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 30
    • View Profile
Re: Unity 5 / Android Buttons not working
« Reply #4 on: March 16, 2015, 04:29:23 AM »
Hi Aren,

Im using the latest version of Unity 5.

Thanks

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Unity 5 / Android Buttons not working
« Reply #5 on: March 16, 2015, 09:25:47 PM »
I had a look at it on my end and everything worked as expected. Try a brand new project and import NGUI into it.