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

  • HoloLens Beginner's Guide
  • Jason Odom
  • 248字
  • 2021-07-02 23:35:17

Adding a little color

Now, we have a platform. However, it is just a boring white platform at the moment; let's fix that. We will now create a material and drag it onto the platform in our scene view:

A colorless platform

Let's fix that!:

  1. In our Project tab, right-click on the Assets folder. Hover over the Create option at the top of the menu, and click on the Folder option in the submenu:
  1. Name this folder Materials.
  2. Select the Materials folder in the left panel of the Project view.
  3. With this folder selected, click on the Create button.
  4. Select Materials from the pop-up menu.
  5. When the new material appears, the name text is highlighted, letting you know that you should name it. Name the new material Platform.

We now have a new material waiting for us to change from the boring default white. There is quite an intimidating number of properties to control for a first-time developer. For now, though, we will keep this simple and change the color only.

  1. Ensure that the Platform material is selected:
  1. With the material selected, let's take a look at our material in Inspector:
  1. Click on the Color Box next to the heading Albedo (the one with the icon of the dropper next to it), as follows:
  1. When the Color Picker dialog appears, change the RGB values to R= 25, G= 40, and B= 248. This will change the color we are using to deep blue:
主站蜘蛛池模板: 新乡市| 秦皇岛市| 西安市| 高密市| 蓬溪县| 琼结县| 鄂尔多斯市| 安福县| 荥经县| 蚌埠市| 光泽县| 鸡西市| 中卫市| 岗巴县| 神农架林区| 连平县| 驻马店市| 通州市| 林甸县| 察哈| 大足县| 溧水县| 上蔡县| 大丰市| 修文县| 库尔勒市| 洛宁县| 台东县| 米易县| 静乐县| 萨嘎县| 兴隆县| 万宁市| 肥西县| 大渡口区| 治多县| 吉木乃县| 阳新县| 犍为县| 清新县| 德阳市|