官术网_书友最值得收藏!

Creating the text

Now, it is time to get into the heart of a Hello World project and create Hello, World!. With our recent experience of creating objects in the preceding section, this should be a rather simple task.

We will create two separate objects here: one will be Hello, and the second will be World.

We will be performing the following steps to create the objects:

  1. In the Hierarchy panel, click on the create button, mouse over the 3D Object menu option, and choose 3D Text from the submenu.
  2. Ensuring that the object is selected, look at Inspector:
  1. You may notice--if you take a look at the Text Mesh component--that the words Hello World are the default for a 3D text object. Click on the box, add a comma (,) after Hello and delete the word World from the object.
  2. Select New Text in the name box, and change the name to Hello.
  1. Go to the Transform component and change the Position to X: -4.3, Y: 2 and Z: 5. This will put the object where we need it in the camera view:
  1. Now, you may notice a blurry /blocky effect on the word; let's fix it. In the Text Mesh component, look for the filed Character Size and change it to 0.19.
  2. In the Font Size field, change the font size from 0 to 84:

Now Hello, should look clear and ready to go. Let's move on to the next word.

We will now duplicate the previous word, make a few changes instead of repeating all the steps from the preceding section. Work smart, not hard they say, but if you do both, well you are probably amazing. Perform the following steps to do it:

  1. In the Hierarchy panel, right-click on the Hello object and select Duplicate.
  2. In the Inspector panel, change the name of the object to World.
  3. Move down to the Text Mesh component and in the Text box change the text to World!.
  4. Now, go to the Transform component like before, and change the X Position to -0.2.

With that, we should now have a scene that looks very similar to this; if that is the case, great work!:

主站蜘蛛池模板: 博客| 樟树市| 伊宁市| 吉木萨尔县| 绥滨县| 乐东| 普兰店市| 阿合奇县| 喀喇沁旗| 宜都市| 敦煌市| 新巴尔虎左旗| 马尔康县| 沈阳市| 德庆县| 安平县| 漠河县| 如东县| 登封市| 潞城市| 宁河县| 邢台市| 太保市| 泰顺县| 夏邑县| 九寨沟县| 西华县| 图们市| 福清市| 盐边县| 江西省| 庄河市| 久治县| 宽甸| 德格县| 西华县| 平阴县| 井研县| 平湖市| 湄潭县| 清丰县|