Author Topic: Buttons with lower depth get clicks over buttons with higher depth  (Read 2256 times)

smtabatabaie

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 13
    • View Profile
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 :


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

Holy Manfred

  • Jr. Member
  • **
  • Thank You
  • -Given: 1
  • -Receive: 8
  • Posts: 71
    • View Profile
Re: Buttons with lower depth get clicks over buttons with higher depth
« Reply #1 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?

smtabatabaie

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 13
    • View Profile
Re: Buttons with lower depth get clicks over buttons with higher depth
« Reply #2 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  ;)