Connect buttons

- [Voiceover] Now that we have our generic window,…it's time for us to create the code…that'll run our actual Start window.…Let's go ahead and create a new C# script,…and we're going to call this 'Start Window.'…Then let's double-click on it,…and open it up inside of our code editor.…Here you can see we have…our generic window, and our new Start window.…Let's replace the Mono Behavior…with Generic Window.…Now, our new window will automatically…extend and inherit all of the logic…in our generic window.…Let's save this, go back into Unity,…and in the Start window,…let's go ahead and add this as a component.…

Simply filter out for Start window…and select it from the drop-down list.…Then, let's drag New Game into the first selected.…The next thing we'll want to do…is set up the navigation between…each of the buttons.…We'll start with the Continue button,…and scroll down until you find…the button's script.…From here, we'll drag the New Game reference…to the select on down.…On the New Game button,…we'll drag Continue to select on up,…

Resume Transcript Auto-Scroll

Author

Updated

9/6/2016

Released

3/30/2016

One of the most important aspects of any game is its UI. Your players spend the majority of their time navigating between different game screens, selecting options, and reviewing game progress. This course addresses some ways to build and design the user interface of a game with Unity's new UI system. Here you'll tackle the start screen, game over screen, difficulty window, and virtual keyboard—common components of most popular 2D and 3D games.

Unity expert Jesse Freeman helps you design your UI using custom prefabs (reusable UI elements), UI components such as windows and buttons, simple buildup animations, and transitions. He also helps you create a window manager to guide changes and relationships between windows, and extend the window system with a custom Unity editor that lets you standardize window display and navigation throughout your game.