Join Jesse Freeman for an in-depth discussion in this video Add buttons to the game over screen, part of Unity 5 2D: Advanced UI.
- [Voiceover] Let's go ahead and create a button…that'll let us leave this window.…We can close out the StatsGroup…now that we're done with it, right click…on the vertical group, and create an empty game object.…Let's call this game object Buttons.…Next, we'll want to add a horizontal layout group…so that we can properly lay out…each of the buttons we add to it.…Next, let's add five to the spacing…so that each of the buttons have…a little bit of breathing room between them.…Now, let's drag in a button and see how it looks.…
Since the vertical layout is stretching…all the children inside of it, you'll notice…that the button will expand to completely…take up the full size of its parent window,…and this is exactly what we want.…Let's go ahead and rename this button to Next,…and look inside and change the text to say Next as well.…Now, this is the only button that…we really want on the screen, but let's say…you wanted to add additional buttons…to your game over screen.…
You could simply copy the Next button,…and paste them into the area.…
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.
- Creating Unity prefabs: fonts, colors, buttons, and labels
- Adding a title, credits, and buttons to the start screen
- Adding a game over screen
- Creating animated stats for the game over screen
- Transitioning between windows
- Building a keyboard window
- Mouse, keyboard, and controller navigation
- Building a custom Unity editor for managing in-game windows
- Adding a window to select difficulty level
Skill Level Intermediate
Unity 5 2D: Generate Procedural Terrainwith Dan Violet Sagmiller4h 4m Intermediate
Unity 5 2D Essential Training (2015)with Jesse Freeman3h 22m Intermediate
Unity 5 2D: Building a Tile Map Editorwith Jesse Freeman1h 38m Intermediate
1. Create UI Prefabs in Unity
2. Create a Start Screen in Unity
3. Create a Game Over Screen in Unity
4. Create a Window Manager
The window manager3m 45s
5. Create a Virtual Keyboard Window
6. Extend the Window System
7. Add a Difficulty Window in Unity
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.