O'Reilly logo

Unity 3.x Game Development Essentials by Will Goldstone

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 9. Designing Menus

In order to create a rounded example game in this chapter, we will look at creating a separate scene to our existing island scene to act as a menu. Menu design in Unity can be achieved in a number of ways using a combination of built-in behaviors and 2D texture rendering.

Game titles can be added using GUITextures, GUI class scripting, or by adding textures to a flat plane primitive; these may be used to create for example a splash screen with developer logos, parts of a game's GUI or loading screens. In this chapter, you will learn:

  • Two different approaches to interface design
  • Controlling GUITexture components with scripted mouse events
  • Writing a basic Unity GUI script
  • Defining 2D spaces with Rect values
  • Styling GUI code ...

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