O'Reilly logo

Beginning 3D Game Development with Unity 4: All-in-One, Multi-Platform Game Development, Second Edition by Sue Blackman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required