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 Learning NGUI for Unity
  • Table Of Contents Toc
Learning NGUI for Unity

Learning NGUI for Unity

By : Charles Bernardoff (EURO)
4.7 (6)
close
close
Learning NGUI for Unity

Learning NGUI for Unity

4.7 (6)
By: Charles Bernardoff (EURO)

Overview of this book

Project teams rarely forget to work on the technology, but they often forget to work with the people, and no matter how amazing your new technology is, it’s useless unless people use it efficiently.
Table of Contents (12 chapters)
close
close
11
Index

Menu appearance


It would be good to have our main menu window appear smoothly with a gradual scale increase. We'll do that using tweens.

The tweening concept

Tweening is the process of automatically generating intermediate values between two start and end values. You define the start and end values manually, and let the computer do the calculations to go from start to end, applying smoothing methods if requested.

Considering this concept, you can tween scale, position, rotation, and more. Indeed, if we needed to tween our window's scale from 0 to 1, we could simply tween the three X, Y, and Z scale values, and the window will gradually become bigger until it reaches its final size.

With NGUI, we have a component to do just that—the Tween Scale component.

Tween Scale

The Tween Scale component can be added to any GameObject to configure a scale tween from one value to another within a given duration. Let's see how it works.

Usage

Add the Tween Scale component to our main menu window:

  1. In Hierarchy...

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.
Learning 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