上QQ阅读APP看书,第一时间看更新
The Options window
We need an Options
window to hold our future game's available options. We can simply duplicate our main menu page and remove the buttons from it:
- Select our
UI Root
|Main
GameObject, and duplicate it by pressing Ctrl + D. - Rename this new duplicate
Options
.
The new Options
window is currently displayed over our main menu. For now, hide our main menu by disabling our Main
GameObject:
- Select our
UI Root
|Main
GameObject. - Uncheck the checkbox (1) in front of its name, as shown in the following screenshot:
Ok, only our new Options
window is displayed. It still has our main menu's buttons. Let's delete them now:
- Select our
Options
|Buttons
GameObject. - Delete it by hitting the Delete key on your keyboard.
We can now change our window's title label so that it displays Options:
- Select our
Options
|Title
|Label
GameObject. - Change the Text field of
UILabel
toOptions
.
Great, we now have an empty Options
window. It's time to fill it up with widgets!