NGUI for Unity

The NGUI plugin for Unity makes user interfaces so much more efficient and attractive. Learn all about it in this step-by-step tutorial that includes lots of practical exercises, including creating a fun 2D game.
Preview in Mapt

NGUI for Unity

Charles Pearson

The NGUI plugin for Unity makes user interfaces so much more efficient and attractive. Learn all about it in this step-by-step tutorial that includes lots of practical exercises, including creating a fun 2D game.
Mapt Subscription
FREE
$29.99/m after trial
eBook
$14.70
RRP $20.99
Save 29%
Print + eBook
$34.99
RRP $34.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$14.70
$34.99
$29.99p/m after trial
RRP $20.99
RRP $34.99
Subscription
eBook
Print + eBook
Start 30 Day Trial

Frequently bought together


NGUI for Unity Book Cover
NGUI for Unity
$ 20.99
$ 14.70
Learning NGUI for Unity Book Cover
Learning NGUI for Unity
$ 26.99
$ 18.90
Buy 2 for $32.20
Save $15.78
Add to Cart
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 

Book Details

ISBN 139781783558667
Paperback182 pages

Book Description

NGUI is an effective plugin for Unity that gives you the power to create beautiful and complex user interfaces while reducing performance costs. It is a powerful UI system and event notification framework for Unity (both Pro and Free) written in C# featuring clean code and a simple, minimalistic approach to everything. You can create a main menu for your game and add sliders, animations, checkboxes, and popup lists, as well as localize your text.

This is an example-oriented, step-by-step, practical tutorial that will guide you through creating a fully functional main menu along with a 2D game. You will acquire the knowledge to create user interfaces for your existing and future PC or mobile games developed with Unity 3D. The book will start by teaching you the basic functions of the tools and how to create a basic UI. Later in the book, you will also learn how to create a much more complex UI.

This book will start by getting you acquainted with NGUI’s workflow and will then gradually take you through building a complex menu and creating a 2D game.

To achieve this, you will create and configure text labels, sliders, and checkboxes along with drag-and-drop systems. You will be exposed to advanced topics like C# with NGUI, and you will also learn how to build a scrollable viewport. By the end of this book, you will have acquired all the knowledge you need to create UIs with the help of practical steps supported by screenshots.

Table of Contents

Chapter 1: Getting Started with NGUI
What is NGUI?
Importing NGUI
Creating your UI
Your UI structure
Summary
Chapter 2: Creating Widgets
Creating our first widget
Sprites
Labels
Buttons
Text input
Slider
Toggle
Popup list
Summary
Chapter 3: Enhancing your UI
NGUI components
The draggable panel
The drag-and-drop system
Animations with NGUI
Scrollable text
Localization system
Summary
Chapter 4: C# with NGUI
Events methods
Tween methods
Using keys for navigation
Error notification
Saving the nickname
Sending messages
Forwarding an event
Summary
Chapter 5: 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
Chapter 6: Atlas and Font Customization
The Atlas prefab
Creating a new Atlas
Adding sprites to Atlas
Adding a font
Customizing the MainMenu
Summary
Chapter 7: Creating a Game with NGUI
Enemy spawning
Handling enemy collisions
Creating self-destruct code
Summary

What You Will Learn

  • Download and import NGUI
  • Construct a basic user interface: buttons, sprites, text inputs, lists, sliders, and more
  • Enhance your UI using clipping, draggable panels, content alignment, animations, and localization
  • Use C# with NGUI to save options, implement volume modification, launch animations, and change variables
  • Build a scrollable viewport with a drag-and-drop system
  • Create tooltips and notifications
  • Add your sprites and fonts to customize your main menu
  • Move elements through code and handle collisions to create a game

Authors

Table of Contents

Chapter 1: Getting Started with NGUI
What is NGUI?
Importing NGUI
Creating your UI
Your UI structure
Summary
Chapter 2: Creating Widgets
Creating our first widget
Sprites
Labels
Buttons
Text input
Slider
Toggle
Popup list
Summary
Chapter 3: Enhancing your UI
NGUI components
The draggable panel
The drag-and-drop system
Animations with NGUI
Scrollable text
Localization system
Summary
Chapter 4: C# with NGUI
Events methods
Tween methods
Using keys for navigation
Error notification
Saving the nickname
Sending messages
Forwarding an event
Summary
Chapter 5: 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
Chapter 6: Atlas and Font Customization
The Atlas prefab
Creating a new Atlas
Adding sprites to Atlas
Adding a font
Customizing the MainMenu
Summary
Chapter 7: Creating a Game with NGUI
Enemy spawning
Handling enemy collisions
Creating self-destruct code
Summary

Book Details

ISBN 139781783558667
Paperback182 pages
Read More

Read More Reviews

Recommended for You

Unity Character Animation with Mecanim Book Cover
Unity Character Animation with Mecanim
$ 39.99
$ 28.00
Unity 4.x Cookbook Book Cover
Unity 4.x Cookbook
$ 29.99
$ 21.00
Unity 4.x Game AI Programming Book Cover
Unity 4.x Game AI Programming
$ 26.99
$ 18.90
Unity Shaders and Effects Cookbook Book Cover
Unity Shaders and Effects Cookbook
$ 29.99
$ 6.00
Learning C# by Developing Games with Unity 3D Beginner's Guide Book Cover
Learning C# by Developing Games with Unity 3D Beginner's Guide
$ 29.99
$ 21.00
Mastering Unity 2D Game Development Book Cover
Mastering Unity 2D Game Development
$ 32.99
$ 6.60