Unity 3.x Game Development by Example Beginner's Guide
上QQ阅读APP看书,第一时间看更新

Time for action – Shrinking the ball

The units in our 3D world are arbitrary. When you're working on your game, it may help to ascribe real-world measurements to these units. Perhaps one unit equals one foot or one meter? If you're building a real-time strategy game where the scale is much larger, maybe one unit equals one mile or one kilometer? The Ball that we've just created is a little large for our purposes, so let's shrink it down a touch.

  1. With the Ball still selected type 0.4 for the X, Y, and Z scale values in the Transform Component of the Ball.
  2. Press Tab to move the carat to each new field, and press Enter after typing in each field to commit the change.

The Ball should shrink down to 0.4, or 40% of its original size. Note that if you enter 0.4 only into one or two of the three Scale fields, you'll accidentally create a weird-looking egg or an ovoid-shaped ball.