Book Image

Unity3D UI Essentials

By : Simon Jackson
Book Image

Unity3D UI Essentials

By: Simon Jackson

Overview of this book

<p>Unity is a powerful cross-platform development engine that provides rich framework to create 2D and 3D apps or games. Through Unity3D, users are able take master the complexities of game development with ease, including animations, physics, renderings, shaders, scripting and now, Unity have released a new and advanced system to cope with the UI demands for modern applications and games.</p> <p>Unity 3D UI Essentials is a complete walk-through of the new UI system in Unity V4 and beyond (including Unity 5). This fast-paced practical tutorial provides you with in depth details of the new UI controls and layouts that can be used to create stunning and multiresolution UI.</p> <p>Venture forth into the highly componentized and advanced UI system, covering new features such as responsive designs and layouts. Also you get to deep-dive into the scripting side of the UI system as Unity has made the entire framework open source, giving free access to the source code of the new UI system to all developers.</p> <p>So get ready for a wild ride into the new Unity3D UI system and set your course for awesome!</p>
Table of Contents (14 chapters)

Overview


In Chapter 1, Looking Back, Looking Forward, I gave you a rundown of all the new controls available in the new UI framework, namely:

  • The Text control

  • The Image and RawImage controls

  • A Button control

  • A Toggle control

  • The Scrollbar and Slider controls

It may not sound like much (compared to the larger array of controls in the legacy GUI), but as you'll discover, it's all you really need as a base (especially when you combine them with all the other features of the new UI).

Beyond that, Unity also provides you with a fully extensible framework used to craft your own controls with events, structures, and design patterns to enable just about whatever you can dream up. You can even use another component called the Selectable component, that can be added to just about any other GameObject (on a Canvas) to enable user interaction.

Enough preamble, let's play.

Note

Note: If you draw a RectTransform with a negative width or negative height, then UI controls will not be drawn. You can rotate the control...