Hello Guest

Author Topic: Scrollable Area - Masks don't stop clicks to UIItems  (Read 4134 times)

Arnold

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 32
  • Create something you love!
    • View Profile
Scrollable Area - Masks don't stop clicks to UIItems
« on: May 11, 2017, 09:30:40 am »
Hi,

i have a weird issue with Depth Masks on Scrollable Areas. As you can see from my gif, i'm able to click the UIItem button even if it's below the mask.
I'm not sure if i encountered this before. Also in the Demo i can not see this behavior, but i also can't see why it would happen in my setup. Everything is on z-layer 0 and still the clicks go right through the mask collider. Any clue why this happens?

Thanks
Arnold

***EDIT****

Nevermind i'm just stupid. Setting the Masks to a higher z value (-1) solves the issue.

« Last Edit: May 11, 2017, 09:45:12 am by Arnold »

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Scrollable Area - Masks don't stop clicks to UIItems
« Reply #1 on: May 24, 2017, 11:21:26 pm »
Great, glad you found a fix.