Book Image

OUYA Game Development by Example

By : John Donovan
Book Image

OUYA Game Development by Example

By: John Donovan

Overview of this book

The OUYA console and development kit gives you the power to publish video games for the players, creating a console marketplace of the gamers, for the gamers, and by the gamers. Using the OUYA developer kit and the Unity3D game engine, even beginners with a captivating game idea can bring it to life with a hint of imagination. OUYA Game Development by Example uses a series of feature-based, step-by-step tutorials that teach beginners how to integrate essential elements into a game engine and then combine them to form a polished gaming experience.
Table of Contents (18 chapters)
OUYA Game Development by Example Beginner's Guide
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – creating a reusable GUI Skin


You used a standard GUI button earlier when you created a title screen with a Start and Tutorial button in Chapter 8, Polishing and Prepping Your Game for Deployment. However, you didn't change the default appearance of the buttons, so they appeared as standard transparent gray boxes, as shown in the following screenshot:

These boxes are clean and functional, but if we want them to match the unique theme of our game, we'll have to apply a GUI Skin. Just like every other reusable asset, a GUI Skin can be created and stored in your Project window and edited in the Inspector window; the steps to do so are as follows:

  1. Create a new GUI Skin and edit the various fonts and textures in the GUI Skin Inspector window until you've achieved a personalized look for your buttons.

  2. When you want to apply a GUI Skin to your current buttons, create a variable of type GUISkin named marbleGameSkin in the script that manages your GUI and add the following lines to...