Simple UI menu navigation without script in Unity
Aug 6, 2021
Not all events in Unity needs a script created to work. Let’s go over how to set up a simple menu by only using UI buttons.
First, set up each panel and ensure there is at least one button object:
On the first panel select the button and add OnClick events. Drag in the next panel and set the event to GameObject.SetActive and true. For this menu there is also a boarder panel which needs to show up when going to the first panel. Add the first panel and set GameObject.SetActive to false:
You can follow these simple steps for the rest of the panels:
Good luck!