Summary

In this chapter, we learned how to create a scrollable viewport using a scrollable background. Also, we linked the mouse drag, scroll bars, and keyboard arrows to it.

We used the UIDrag Object component to create our drag-and-drop system, allowing us to drag objects inside the scrollable viewport.

Coroutines helped us to create the barriers' building process and cooldown system. The UIForward Events component was used to forward events to the viewport. Finally, we reused our Notification prefab inside our new Game scene.

We now have the basic elements for Chapter 7, Creating a Game with NGUI. Now, it is time to discover how to add sprites and fonts to NGUI with Chapter 6, Atlas and Font Customization. We will then use our own assets to create a game!

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

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