Been working on the main menu UI for Ace Perinova using Unity’s new UI Toolkit. In this particular video, I’m showcasing a generic back button and a system that automatically displays levels and loads them depending on which you select. The back button is remapped depending on which “Screen” is open at the time. A “screen” is a class contained a primary Visual Element and a nullable “Screen” that is a back location. If it’s null, the back button disappears. If it has a screen, the back button registers a click event that opens the back location screen. Next, when I click “Scene Select”, you’ll see it creates 3 generic buttons at the top. I’ve copied and pasted a scene into a “scene playlist”, and these buttons are automatically generated and named for the scene they represent. They will also display an image that represents the scene. When clicked, the scene is “selected” and then the play buttons is given focus. When the play button is clicked, the scene loads.
I really like automating these kind of things because I’m pretty bad at manually doing these things. This is why I like UI Toolkit.