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:
Select our
UI Root
|Main
GameObject and enable it.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.