This is the code repository for Mastering UI Development with Unity, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.
A functional UI is an important component for player interaction in every type of video game. Along with imparting crucial statistical information to the player, the UI is also the window through which the player engages with the world established by the game. Unity's tools give you the opportunity to create complex and attractive UIs to make your game stand out.
This book helps you realize the full potential of Unity's powerful tools to create the best UI for your games by walking you through the creation of myriad user interface components.
Learn how to create visually engaging heads-up-displays, pause menus, health bars, circular progress bars, animated menus, and more. This book not only teaches how to lay out visual elements, but also how to program these features and implement them across multiple games of varying genres.
While working through the examples provided, you will learn how to develop a UI that scales to multiple screen resolutions, so your game can be released on multiple platforms with minimal changes.
All of the code is organized into folders. Each folder starts with a number followed by the application name. For example, Chapter02.
The code will look like the following:
// Use this for initialization
void Start () {
theImage.sprite=theSprite;
theImage.preserveAspect=true;
}
To complete the examples discussed in this text, you will need the following:
Unity version 5.6 or higher, A PC with Windows 7, 8, or 10 (64-bit) or a Mac with OS X 10.9 or higher, An internet connection to access the Unity Asset Store, Basic knowledge of Unity and C# programming is recommended
If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.