Chapter 3. Enhancing your UI

In this chapter, we will learn how to enhance our UI experience by using more advanced features, which are as follows:

  • Draggable panels and animations
  • The drag-and-drop system
  • Automatic content alignment
  • Clipping
  • Scrollable text
  • The localization system

Let's start by talking about NGUI components and their overall behavior.

NGUI components

In Chapter 2, Creating Widgets, we added the UIStretch and UIAnchor components to our widgets, and also the Load Level On Click component. There are many more components, and the purpose of this chapter is to discuss these components. We will use the most important ones in this chapter. It is possible to add a component to any kind of widget—considering it is logical of course.

This component-oriented structure makes NGUI extremely flexible and modular. We will start by making our main menu a draggable window.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.118.198.81