I’m struggling with problem about button expanding and collapsing.
This is what I want to achieve:
If i press for example 4 button I want it to expand another “submenu” and close previously selected.
I have 2 problems:
1)When I choose any button from “submenu” and spawn in on the map, I have to click button from “mainmenu(button clicked on image)” two times to open it again Screen capture - cca39975a8716cb0962da6e9cecb85c8 - Gyazo
2)It is overlaping one on another Screen capture - c4314d268ad476ff18c9425e5bfc6706 - Gyazo