CHAPTER 12

image

Message Text

One of the most common features of a classic point-and-click adventure game is the text prompt, or message, that identifies an action object as you mouse over. In your game, you will display the name and description of the object on mouseover when a player is within range, as well as a message informing him if he tries to pick the object and isn’t close enough.

UnityGUI text design is patterned after the concept of cascading style sheets (CSS). You define colors and fonts for a particular style, and all of the GUI elements inherit those properties with GUISkin. This makes for a consistent look and feel throughout. It also ...

Get Beginning 3D Game Development with Unity 4: All-in-One, Multi-Platform Game Development, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.