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

Chapter 3. Player Characters

In this chapter, we'll expand the island scenario we created in the previous chapter by taking a look at the construction of the player character that you have already added to the scene. Stored as a prefab (a data template object) provided by Unity Technologies as part of the Standard Assets package, this object is an example of a first person perspective player character. But how does its combination of objects and components achieve this effect?

In this chapter, we'll take a look under the hood of this prefab, while looking at how each of the components work together to create our player character. You'll get your first look at scripting in Unity JavaScript. As we have already added our prefab to the game scene, it would be all too easy to continue with the development and accept that this object just works. Whenever you are implementing any externally created assets, you should make sure you understand how they work. Otherwise, if anything needs adjusting or goes wrong, you'll be in the dark.

With this in mind, we'll take a look at the following in order to help you understand how combining just a few objects and components can create a fully-fledged character:

  • Tags, layers, and prefabs in the Inspector
  • Parent-child relationships in objects
  • JavaScript basics
  • Scripting for player movement
  • Public member variable adjustment in the Inspector
  • Using cameras to create the viewpoint
主站蜘蛛池模板: 永顺县| 昌邑市| 玉山县| 修武县| 衡阳县| 巴楚县| 乐亭县| 奈曼旗| 永吉县| 新巴尔虎右旗| 剑川县| 奉化市| 宁化县| 江永县| 宁津县| 苍梧县| 商丘市| 延庆县| 东阿县| 东海县| 大丰市| 南平市| 林口县| 宿州市| 柳林县| 博乐市| 维西| 永平县| 桑植县| 平山县| 禄劝| 景德镇市| 芜湖市| 威信县| 大洼县| 保康县| 石阡县| 潞城市| 吉安市| 开江县| 大港区|