I am developing a 2D UI in unity. I have developed a scroll-able list of buttons in which the buttons are intractable. What I am trying to achieve is to have a sub list of items for each button of the scroll able list. In essence, have buttons in the scroll able list that toggle a sub-list to being visible/hidden.
Upon clicking a button the sub-list should appear vertically below the button that was pressed. When the sub list appears the buttons below the sub list should move negative in the vertical axis so that the sub list doesn't get covered/overlayed by the other buttons that make up the scroll able list. I have broken down what I am trying to achieve below.
- Developing a 2D UI that has a scroll able list of buttons
- Each button toggles a sub list visible/hiddenn that drops down below the button pressed
- Upon the list dropping down the buttons below the sub list should move negatively in the vertical axis so that the sub list items are not covered/overlayed by the buttons below the one clicked/pressed.
I have attached 2 images links that show part of what I have done so far. If you have any questions do please let me know.
https://ibb.co/hFwtG8https://ibb.co/ffXTio