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

NGUI components


During the second chapter, we created widgets using NGUI components such as UISprite, UIPopupList, and UIInput. There are many more very useful components we can add to GameObjects. Some execute simple actions, while others are more complex—we need to understand them and learn how and when to use them. This component-oriented structure makes NGUI extremely flexible and modular.

Let's start by making our main menu's buttons become larger on hover. Before we continue, let's reactivate our Main page:

  1. Select our UI Root | Main GameObject and enable it.

  2. Select our UI Root | Options GameObject and disable it.

Ok, let's see how we can add a scale tween on hover for these buttons.