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 - Helion
ebook
Autor: Charles BernardoffTytuł oryginału: 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.
ISBN: 9781783558674
stron: 182, Format: ebook
Data wydania: 2014-01-24
Księgarnia: Helion
Cena książki: 109,00 zł
Osoby które kupowały "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", wybierały także:
- Windows Media Center. Domowe centrum rozrywki 66,67 zł, (8,00 zł -88%)
- Ruby on Rails. Ćwiczenia 18,75 zł, (3,00 zł -84%)
- Przywództwo w świecie VUCA. Jak być skutecznym liderem w niepewnym środowisku 58,64 zł, (12,90 zł -78%)
- Scrum. O zwinnym zarządzaniu projektami. Wydanie II rozszerzone 58,64 zł, (12,90 zł -78%)
- Od hierarchii do turkusu, czyli jak zarządzać w XXI wieku 58,64 zł, (12,90 zł -78%)
Spis treści
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 eBook -- spis treści
- NGUI for Unity
- Table of Contents
- NGUI for Unity
- Credits
- About the Author
- About the Reviewers
- www.PacktPub.com
- Support files, eBooks, discount offers and more
- Why Subscribe?
- Free Access for Packt account holders
- 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
- Downloading the example code
- Downloading the color images of this book
- Errata
- Piracy
- Questions
- 1. Getting Started with NGUI
- What is NGUI?
- UnityGUI versus NGUI
- Atlases
- Events
- Localization
- Shaders
- Importing NGUI
- Creating your UI
- UI Wizard
- Window
- Parameters
- Separate UI Layer
- UI Wizard
- Your UI structure
- UI Root (2D)
- Parameters
- Camera
- Parameters
- Anchor
- Parameters
- Panel
- Parameters
- UI Root (2D)
- Summary
- What is NGUI?
- 2. Creating Widgets
- Creating our first widget
- Widget Wizard
- Selecting an atlas
- Creating a widget from a template
- Transforming widgets
- Moving widgets
- Rotating widgets
- Scaling widgets
- Common widget parameters
- Sprites
- Sliced sprites
- Tiled sprites
- Filled sprites
- Labels
- Parameters
- Creating the title bar
- Buttons
- Parameters
- The play and exit buttons
- Text input
- Parameters
- Creating a nickname box
- Slider
- Parameters
- Creating a volume slider
- Toggle
- Parameters
- Creating a sound toggle
- Popup list
- Parameters
- Creating a difficulty selector
- Summary
- Creating our first widget
- 3. Enhancing your UI
- NGUI components
- The draggable panel
- Parameters
- Dragging the MainMenu
- The drag-and-drop system
- Powers selection
- Draggable items container
- Draggable items
- The drop surface
- Prefab instantiated on drop
- Handling an invalid drop
- Replacing the current item
- Removing the current item
- Powers selection
- Animations with NGUI
- Smooth powers apparition
- Clipping to hide options
- Scrollable text
- Localization system
- Localization files
- Localization component
- Language selection box
- Localizing a Label
- Summary
- 4. C# with NGUI
- Events methods
- Creating a tool tip
- The tool tip reference
- Showing the tool tip
- Creating a tool tip
- Tween methods
- Main menu apparition
- Simple Tween
- Smooth Tween
- Main menu apparition
- Using keys for navigation
- Error notification
- Saving the nickname
- Sending messages
- Forwarding an event
- Summary
- Events methods
- 5. Building a Scrollable Viewport
- Preparing the Game scene
- The scrollable viewport
- Draggable background
- Linking scroll bars
- Keyboard scrolling
- Creating draggable barriers
- The BarrierObject prefab
- Dropping a barrier on Viewport
- Creating an ActiveBarrier prefab
- The ActiveBarrier prefab
- Instantiating the ActiveBarrier prefab
- Barriers building process
- Forwarding events to viewport
- BarrierObject cooldown
- Cooldown implementation
- BarrierObject smooth apparition
- The barrier availability tool tip
- Summary
- 6. Atlas and Font Customization
- The Atlas prefab
- Creating a new Atlas
- Adding sprites to Atlas
- Simple sprites
- Adding sprites to Atlas
- Available powers icons
- Selected powers icons
- Sliced sprites
- Adding a sprite to Atlas
- Configuring a sliced sprite
- The Main Menu window
- Tiled sprites
- Simple sprites
- Adding a font
- Exporting a font using BMFont
- Creating a font in Unity
- Assigning a new font to Label
- Customizing the MainMenu
- Summary
- 7. Creating a Game with NGUI
- Enemy spawning
- Creating the enemies container
- Creating the Enemy prefab
- Creating the enemy spawn controller
- Forwarding events to viewport
- Handling enemy collisions
- Collisions with active barriers
- Colliding with the bottom of the screen
- Healthbar
- The EndOfScreen widget
- Creating self-destruct code
- The hacking slider
- Self-destruct code
- Assigning code to an enemy
- The hacking process
- Handling player input
- Summary
- Enemy spawning
- Index