Author Topic: NGUI button stops working after file is saved  (Read 2570 times)

jcsl

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
NGUI button stops working after file is saved
« on: August 30, 2014, 10:21:02 AM »
I am having a really weird problem. I have four buttons in an Android game, horizontally aligned. 3 of them work well, but the fourth, which is located on the left side of the screen, only works if it is placed vertically above the other 3 buttons. If I place any of the other 3 buttons on the left side of the screen, they work without a problem. If I place the problematic button in any of the other 3 positions, it still doesn't work.

I have recreated the problematic button from scratch 10 times. It works without a problem, then I close the program and when I open the file it is not working again. There is nothing overlapping the button, and there is only a background behind it. I have checked for depth conflicts and there are none.

I would greatly appreciate if anyone can tell me why this is happening.

Thanks!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: NGUI button stops working after file is saved
« Reply #1 on: August 31, 2014, 02:47:14 PM »
My guess is that you chose 3D World event type on your UI camera instead of the 3D UI, and you have some other collider in the same place. Turning on Debug on the UICamera will show you what it's hovering over.