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

Time for action – rename the Ball

  1. In the Hierarchy panel, find the GameObject called Sphere, beneath Main Camera.
  2. To rename the sphere, you can either right-click/alternate-click it and choose Rename, or press F2 on the keyboard if you're on a PC. Mac users can press the Return or Enter key to rename the Sphere. You can also rename a GameObject by selecting it and typing a new name into the field at the top of the Inspector panel.
  3. Rename the game object to Ball:
    Time for action – rename the Ball

Your project can fill up fast with generically named game objects and other assorted things, so let's stay on top of our project by naming game objects as we create them.