Abstract
In this chapter we’ll create a basic graphical user interface (GUI) system for CMOD. This includes a main menu and a HUD (head-up display). The main menu will appear when the user presses the Escape key on the keyboard, allowing him to restart, load, save, and exit the game. And the head-up display will continually show Player health, as well as the ammo status for the active weapon. In creating the GUI, we’ll explore a range of subjects, including screen dimensions, the aspect ratio, widgets, anchoring, GUI scaling, and resolution independence. As always, these subjects apply practically, not just for CMOD or Unity specifically, but for game engines and games, as well as software and web sites in general. So, let’s get started with creating GUIs.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2014 Alan Thorn
About this chapter
Cite this chapter
Thorn, A. (2014). Graphical User Interfaces. In: Pro Unity Game Development with C#. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-6745-4_8
Download citation
DOI: https://doi.org/10.1007/978-1-4302-6745-4_8
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-6746-1
Online ISBN: 978-1-4302-6745-4
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books