O'Reilly logo

NGUI for Unity by Charles Bernardoff

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

Popup list

We will now learn how to create the popup list, see its parameters, and create a difficulty selector for our game.

  1. Select the Panel GameObject and create a new child with Alt + Shift + N.
  2. Rename that new child as Difficulty. It's our difficulty box container.
  3. Navigate to NGUI | Open | Widget Wizard and perform the following steps:
    1. Select Popup List as Template
    2. Select Dark as Foreground.
    3. Select Dark as Background.
    4. Select the Highlight sprite as Highlight.
  4. With our Difficulty GameObject selected, click on the Add To button.

Parameters

A Popup List GameObject has just been created. Let's look at its parameters:

  • Atlas: This is the atlas used for the popup list's sprites.
  • Font: This is the font used for the popup list's options.
  • Text Label: This is the ...

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