Book Image

Learning NGUI for Unity

By : Charles Bernardoff (EURO)
Book Image

Learning NGUI for Unity

By: Charles Bernardoff (EURO)

Overview of this book

Table of Contents (17 chapters)
Learning NGUI for Unity
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

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:

  1. Select our UI Root | Main GameObject, and duplicate it by pressing Ctrl + D.

  2. 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:

  1. Select our UI Root | Main GameObject.

  2. 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:

  1. Select our Options | Buttons GameObject.

  2. Delete it by hitting the Delete key on your keyboard.

We can now change our window's title label so that it displays Options:

  1. Select our Options | Title | Label GameObject.

  2. Change the Text field of UILabel to Options.

Great, we now have an empty Options window. It's time to fill it up with widgets!