How to do it...

To add Reflectiveness and Specularity to a material, follow these steps:

  1. Import the batteryPrefab.unitypackage package into a new project. Then, select the battery_prefab object from the Assets folder, in the Project panel.
  2. From the Inspector, expand the Material component and observe the asset preview window. Thanks to the Specular map, the material already features a reflective look. However, it looks as if it is reflecting the scene's default Skybox, as shown in the following screenshot:

  1. Import the CustomReflection.jpg image file. Ensure that this asset is selected in the Project panel.
  2. In the Inspector for its Import ...

Get Unity 2018 Cookbook - Third Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.