Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: smtabatabaie on January 11, 2017, 02:46:13 AM

Title: Buttons with lower depth get clicks over buttons with higher depth
Post by: smtabatabaie on January 11, 2017, 02:46:13 AM
Hi, I have a setup much like instagram explore , which has a scrollView with a grid of cells inside. and in the footer of the app I have some buttons which has higher depth of the cells. which looks like this :
(http://i.imgur.com/DLjqrGzl.jpg)

The problem is the footer and all its items has more depth than the cells but the cells get the click and prevents the footer buttons from getting the click. the hierarchy looks like this :

-ScrollView
--Grid
---Cell1
---Cell2
---Cell3
-Footer
--Btn1
--Btn2
--Btn3

I'll appreciate if anyone can help me with this.
Thanks
Title: Re: Buttons with lower depth get clicks over buttons with higher depth
Post by: Holy Manfred on January 12, 2017, 10:25:43 AM
If the footer buttons have proper colliders it should work. However, a scrollview is always on a panel. Maybe that is somehow overlapping your your footer? Is your footer on a different panel?
Title: Re: Buttons with lower depth get clicks over buttons with higher depth
Post by: smtabatabaie on January 12, 2017, 10:42:06 AM
Wow, Thanks man , setting the depth of the Panel of scrollView to a negative value seems to solve the problem  ;)