Book Image

Learning NGUI for Unity

By : Charles Bernardoff (EURO)
Book Image

Learning NGUI for Unity

By: Charles Bernardoff (EURO)

Overview of this book

Table of Contents (17 chapters)
Learning NGUI for Unity
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 5. Atlas and Font Customization

Until now, we've used NGUI's default atlases to create all our widgets. In this chapter, you will learn how to create a new atlas and add our own assets. This chapter will cover the following topics:

  • Understanding the atlases

  • Creating a new atlas

  • Adding sprites to the atlas (normal, sliced, and tiled)

  • Understanding Dynamic and Bitmap fonts

  • Importing new custom fonts in the project

  • Displaying large textures on screen without storing them in atlases

We will use these new assets to add icons to our play, options, and exit buttons. We will also change our different windows' backgrounds and add new fonts to our UI.

At the end of this chapter, you will understand NGUI's atlas and font creation and know how to import your own assets.