更新时间:2021-08-06 19:51:32
coverpage
Learning NGUI for Unity
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files eBooks discount offers and more
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Chapter 1. Getting Started with NGUI
Overview
Final build
Importing NGUI
Creating the UI Root
Displaying text
Widget parameters
Displaying a sprite
Under the hood
Summary
Chapter 2. Creating NGUI Widgets
Control prefabs
The Prefab Toolbar
Buttons
The Options window
Popup List
The input field
Adding a checkbox
Slider
Chapter 3. Enhancing Your UI
NGUI components
Enlarging buttons on hover
Menu appearance
Menu disappearance
Switching to options
Back to the menu
Scene initialization
Hiding and showing the volume box
More tween components
Draggable windows
Scrollable text
Close buttons
Localization system
Anchors
Chapter 4. C# with NGUI
Events
Creating tooltips
Tweens
Event delegates
Keyboard keys
Saving options
Persistent UI
Chapter 5. Atlas and Font Customization
Texture atlas
Creating a new atlas
Adding sprites to the atlas
Fonts
Displaying large textures
Chapter 6. The In-game User Interface
The game
Draggable power sources
Moving the player
Player name display
The elemental source switch
The elemental switch charging process
The unavailable button
Launch from the main menu
Chapter 7. 3D User Interface
Introduction to 3D user interface
The 3D environment text
Lighting effects
Chapter 8. Going Mobile
Switching to Android
Preparations
Testing the game
Corrections
Customizable UI
Unity Remote
The profiler
Debugging on the device
Chapter 9. Screen Sizes and Aspect Ratios
The adaptive UI
The flexible UI
Multiple bitmap fonts
Multiple atlases
Switching atlases
Switching fonts
Chapter 10. User Experience and Best Practices