C H A P T E R   10

images

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 our game, we 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 ...

Get Beginning 3D Game Development with Unity: The World's Most Widely Used Multi-platform Game Engine 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.