- Home /
Question by
Catdrinkingacat · Jun 16, 2021 at 02:16 PM ·
c#uipanel
Swipe-able panel up down left right
I am very new to C# and Unity. I want to make a panel that can be swiped (by both mouse and finger) up, down, left and right. So this is my basic plan:
1
2 3 4
5
The numbers are my panels. Swiping downward on panel 1 should bring it down to panel 2. Swiping left or right in panel 2, 3 or 4 it should move to the next panel or loop around and swiping downwards should bring it to panel 5 and swiping upwards should bring it to panel 1. The movement should be smooth and according to the movement of the finger or cursor.
How can I achieve this? If you guys could help me out (or even just provide key phrases), I'd really appreciate it. Thank you and have a great day!
Comment
Your answer