I would like to create a collapsible side menu in my game that looks something the image below. When you click on one of the top menu buttons it will expand and the rest will collapse. How could I go about implementing something like this?
Thanks for any help
So i edited my answer, attached a image of hierarchy, you see in image that main panel is there - it has Vertical layout component attached and ‘Content-size fitter’ with vertical/horizontal fit to min size, with this you can change height and width of menu options, also every menu button has Layout element with min height/min width for same. The panel with options is not child of menu but sibling and all you have to is disable these sibling which contains options.