Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying NGUI for Unity
  • Table Of Contents Toc
NGUI for Unity

NGUI for Unity

By : Charles Bernardoff (EURO)
3.9 (14)
close
close
NGUI for Unity

NGUI for Unity

3.9 (14)
By: Charles Bernardoff (EURO)

Overview of this book

Table of Contents (14 chapters)
close
close

Preparing the Game scene


We will need to have our GameManager and Notification GameObjects as prefabs for this chapter.

From our Menu scene, create these two prefabs by dragging them separately in the folder of your choice in the Project view.

Now, let's create a new scene with Ctrl + N and perform the following steps:

  1. Press Ctrl + S to save it, and enter Game as the scene's name.

  2. In our new scene, delete the Main Camera GameObject. We won't need it for this scene.

  3. Drag our GameManager prefab from the Project view into the Hierarchy view.

  4. Open the UI Tool wizard by navigating to NGUI | Create a New UI.

  5. Add a new Layer named Game.

  6. Select this Game layer for the Layer parameter in our UI Tool wizard.

  7. Click on the Create Your UI button.

  8. Select our new Camera GameObject, and set its Background Color to R: 0, G: 0, B: 0, and A: 255.

    Note

    Make sure your Color selector popup is in the RGBA values and not HSVA. This can be done by using the button next to the Sliders option when you click on a Color parameter...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
NGUI for Unity
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon