Author Topic: Click through problem on iOS  (Read 2330 times)

Majicpanda

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 83
    • View Profile
Click through problem on iOS
« on: April 09, 2013, 11:11:39 PM »
Are there any known issues with using Z depth for blocking click through on iOS?

I have a window with a button sprite X, it closes the window that belongs to it but it also clicks the button under it that takes you to another scene in the game.  I could re-design my UI a bit to resolve the issue, but the issue doesn't exist on PC or Web builds.. only iOS.

I've tried adjusting the Z depth directly but that doesnt stop the click through.  Everything is just a standard widget with the default ngui button / collider system.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Click through problem on iOS
« Reply #1 on: April 10, 2013, 02:41:48 PM »
Only one object should be getting the event. If you want more than one, use UIForwardEvents.

Majicpanda

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 83
    • View Profile
Re: Click through problem on iOS
« Reply #2 on: April 10, 2013, 07:02:53 PM »
My mistake on this one sorry Aren.  The close window collider is only 50x50 so on iPhone this is a very small and easy to miss box even if it appears that you're pressing on it.  Works fine on ipad since the button is much larger on your screen..  What was happening was a click through the full screen window to buttons underneath unknowingly because i dont have a collider on the full screen window.

Fixed :)