PacktLib: NGUI for Unity

NGUI for Unity

Credits

About the Author

About the Reviewers

www.PacktPub.com

Preface

Getting Started with NGUI

What is NGUI?

Importing NGUI

Creating your UI

Your UI structure

Summary

Creating Widgets

Creating our first widget

Sprites

Labels

Buttons

Text input

Slider

Toggle

Popup list

Summary

Enhancing your UI

NGUI components

The draggable panel

The drag-and-drop system

Animations with NGUI

Scrollable text

Localization system

Summary

C# with NGUI

Events methods

Tween methods

Using keys for navigation

Error notification

Saving the nickname

Sending messages

Forwarding an event

Summary

Building a Scrollable Viewport

Preparing the Game scene

The scrollable viewport

Creating draggable barriers

Creating an ActiveBarrier prefab

BarrierObject cooldown

The barrier availability tool tip

Summary

Atlas and Font Customization

The Atlas prefab

Creating a new Atlas

Adding sprites to Atlas

Adding a font

Customizing the MainMenu

Summary

Creating a Game with NGUI

Enemy spawning

Handling enemy collisions

Creating self-destruct code

Summary

Index