- HoloLens Beginner's Guide
- Jason Odom
- 300字
- 2021-07-02 23:35:21
Creating prefabs
Now that we have a bit of an understanding of the preceding concepts, we will take our Platform and 3D text object and create a prefab from them. We will do this twice to see the multiple ways in which this task can be accomplished; let's take a look at the steps we need to carry out:
- First, let's look at the Project view. Using the process from the preceding chapter, create a folder called Prefabs, as a subfolder of Assets.
- Select the Prefabs folder from the left side of the Project view.
- Right-click in the open area on the right-hand side of the Project view, slide your mouse pointer over Create, and click on Prefab:

- A white square should appear in Project view with a highlighted name New Prefab; name this one Test One.
- In the Hierarchy view, click on the Platform object and drag it down to the Test One prefab. When this is accomplished, your Test One prefab will look something like this:

- If you click on the arrow on the right-hand side of the prefab, you will be able to view the other objects in the Prefabsfolder:

- In an effort to distinguish prefabs from non-prefabs in the Hierarchy view, prefab names are colored blue:

- Now, delete the Test One object from the Project view. You may note that the prefab in the Hierarchy view has turned red. This is to let the designer know that master Prefab has been deleted.
- This time, we will click on the red Platform object in the Hierarchy view and drag it down to the now empty space in the Project view.
- The same Prefab object will appear again; this time, though, the name of the prefab is the name of the parent object:

推薦閱讀
- Getting Started with Citrix XenApp? 7.6
- 測試驅(qū)動開發(fā):入門、實戰(zhàn)與進階
- Android開發(fā)精要
- 區(qū)塊鏈架構(gòu)與實現(xiàn):Cosmos詳解
- FFmpeg入門詳解:音視頻流媒體播放器原理及應(yīng)用
- Flash CS6中文版應(yīng)用教程(第三版)
- Internet of Things with Intel Galileo
- 基于Swift語言的iOS App 商業(yè)實戰(zhàn)教程
- Java應(yīng)用開發(fā)技術(shù)實例教程
- Spring Boot實戰(zhàn)
- JavaScript動態(tài)網(wǎng)頁編程
- C++從入門到精通(第6版)
- Android高級開發(fā)實戰(zhàn):UI、NDK與安全
- IBM RUP參考與認證指南
- 3ds Max 2018從入門到精通