0

I have this problem. I'm using a scroll rect to display a series of buttons, but I would make sure that as soon as the buttons (with the scroll rect), come out of a certain area (bounded by a panel), become invisible. to explain it better in the pictures. I would like the visible part of the list of buttons to stop where there is the black arrow, and then I would delete the part where I drew the red waves

enter image description here

enter image description here

Steven
  • 166,672
  • 24
  • 332
  • 435

1 Answers1

0

You need to use UI Mask to hide the elements when they are out of parent's bounds. Here's a good tutorial about it.

Max Yankov
  • 12,551
  • 12
  • 67
  • 135