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

Summary


During this third chapter, we learned that most NGUI components can be added to widgets or 3D objects, and we used them to create a more complex UI.

We configured the Tween Scale, Tween Position, and Tween Alpha components, while the UIPlay Tween was used to play these tweens on specific events without any code.

We used our tweens' play direction to switch between the main menu and options page with the click of a button, thus managing multiple pages.

The Initialization.cs script enables or disables the corresponding GameObjects when Unity enters the Play mode—we can now freely edit our UI without having to think about what needs to be enabled or disabled before hitting Unity's play button.

Some scrollable welcome text was created to introduce us to the clipping feature of UIPanel, while UIEvent Trigger was used to force-save the nickname when it is deselected.

Finally, we introduced NGUI's localization and anchors systems. We will use these throughout the entire book, and we will discover...