-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Unity 4.x Game Development by Example: Beginner's Guide
By :

Save and close the HeartBounce script—we'll come back to it in a jiffy. First, let's tag the tray GameObject so that we can determine if the heart has collided with it.
Click on the HandsAndTray GameObject in the Hierarchy panel.
In the Inspector panel, just beneath the GameObject's name, is a dropdown labeled Tag. Choose Add Tag from the bottom of this drop-down list. (By default, all Game Objects are marked "Untagged")
We're taken to the Tag Manager. Click on the gray arrow beside the word Tags at the top of the list.
There's an invisible text field next to the line labeled Element 0. This takes a leap of faith the first time you do it. Click on the blank area beneath the 1 on the Size line. Then type the word tray. Press the Enter key to make it stick. Notice that Unity adds a new blank tag for us, labeled Element 1.
Click to select the Tray_Mesh in the Hierarchy panel (you may need to click on the gray arrows to expand the hierarchy beneath the HandsAndTray...
Change the font size
Change margin width
Change background colour