# Creating and Applying Materials

## Creating a Material Asset

Since materials can be used on multiple game objects, it is an [asset created](../../create/create-assets) and it appears in the [Project ](../../the-unity-interface/the-tabs/project-tab)window and stored in the Assets folder.

Right-click in the Project window or click on Assets in the taskbar.

Select **Create > Material**.

![](https://3795241431-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8XSUYVSlHMdPUNud-2%2F-M9UwfwdiLip3BrBeSqu%2F-M9V5Cfun5al1SgVEee7%2Fimage.png?alt=media\&token=2954be01-2281-4a93-a3c3-d93dcae87f40)

This will create a new asset in the Project window in the current folder:

![](https://3795241431-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8XSUYVSlHMdPUNud-2%2F-M9UwfwdiLip3BrBeSqu%2F-M9V5PVP8xZGvIofOYXX%2Fimage.png?alt=media\&token=7834cfb5-3f47-4d88-bbee-f8f17907387c)

Name your material and press the Enter/Return key to confirm.

{% hint style="info" %}
**Note:** Unlike scripts, renaming a material is safe and will update editor references to it.
{% endhint %}

When the asset is selected, the [Inspector ](../../the-unity-interface/the-tabs/inspector-tab)will show its properties.

![Properties for a standard material called "Wood Material"](https://3795241431-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8XSUYVSlHMdPUNud-2%2F-M9V6qnUHMS2dTEDIDvg%2F-M9VArNAYEzKuTWlxYFr%2Fimage.png?alt=media\&token=c86f7f34-1dd2-4e74-b915-f2aa753631e6)

## **Applying the Material**

This can be done before or after updating the properties. Many developers add the material first to see how the game object will look as they mess with the material options.

To apply the material, simply click and drag the material onto the game object in the Scene window, Hierarchy window, or (if selected) into the Inspector.

## **Common Properties to Play With**

These properties are listed in the order you'll find yourself using the most often.

### **Color**

![](https://3795241431-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8XSUYVSlHMdPUNud-2%2F-M9UwfwdiLip3BrBeSqu%2F-M9V6kim73SQH_MLR39k%2Fimage.png?alt=media\&token=7e668cae-c2a4-4846-afd6-b2ff7c71d39b)

Click on the color picker to choose the color or input color values. Click on the link below for more details:

{% content-ref url="../../select/components/using-the-inspector-tab" %}
[using-the-inspector-tab](../../select/components/using-the-inspector-tab)
{% endcontent-ref %}

### **Textures**

Textures are 2D images that get wrapped around objects with the material they are attached to.&#x20;

To add a main texture, click on the circle/target icon to the left of "Albedo." A window will appear listing your available textures - those in your Asset folder and a few built-in options.

![Wood is a texture I added to the Asset folder. The other textures are built-in to most projects.](https://3795241431-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8XSUYVSlHMdPUNud-2%2F-M9V6qnUHMS2dTEDIDvg%2F-M9V9xyO_hBdTmWD-GJu%2Fimage.png?alt=media\&token=c882f004-b091-43a6-958f-a38ea48ebebb)

Double-click or select the asset and close the window. The texture will appear in the square next to Albedo.

![](https://3795241431-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8XSUYVSlHMdPUNud-2%2F-M9V6qnUHMS2dTEDIDvg%2F-M9VALCdMCG9iYroNOO4%2Fimage.png?alt=media\&token=60fc224c-8461-4867-8cde-4cb42ea29f40)

Using a texture with a color other than white could affect the look of your material.

With the current texture and color, the preview of the texture at the bottom of the Inspector window looks like this:

![](https://3795241431-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8XSUYVSlHMdPUNud-2%2F-M9V6qnUHMS2dTEDIDvg%2F-M9VBDWTEIjNF3k9liXN%2Fimage.png?alt=media\&token=202e152e-01e3-4df9-a1e2-0ac7e0bf061a)

What it looks like on a cube in the scene:

![](https://3795241431-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8XSUYVSlHMdPUNud-2%2F-M9VC7CU3n1e9FCe7KDw%2F-M9VIWxN61xarouyhDfA%2Fimage.png?alt=media\&token=7890dcda-b01f-4ada-b551-90cd7fd23c4b)

### **Emission**

Materials appearing to glow use the Emission property.

![](https://3795241431-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8XSUYVSlHMdPUNud-2%2F-M9VC7CU3n1e9FCe7KDw%2F-M9VCYTPJ3CVnG0pDf3c%2Fimage.png?alt=media\&token=298fa0f9-0198-41df-83cd-debefc6f671c)

Click the checkbox to see more options.

![](https://3795241431-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8XSUYVSlHMdPUNud-2%2F-M9VC7CU3n1e9FCe7KDw%2F-M9VChx2eVngoGY9Td1f%2Fimage.png?alt=media\&token=6ed8a91d-c37b-4efc-9ed4-0733f9e65087)

This property can glow based on a color or a texture. The Tiling and Offset are for tweaking textures. HDR colors have an intensity setting to contribute to it's "light source" appearance.

Example of a material named "Glow" with a black albedo color and bright green HDR emission color:

![](https://3795241431-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8XSUYVSlHMdPUNud-2%2F-M9VC7CU3n1e9FCe7KDw%2F-M9VDYhN5RmsF5YsW4nP%2Fimage.png?alt=media\&token=eb0ea03f-77fb-4ab6-a77b-7edcde59b325)

What it looks like on a cube in the scene:

![](https://3795241431-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8XSUYVSlHMdPUNud-2%2F-M9VC7CU3n1e9FCe7KDw%2F-M9VIfGI7ts43S_TKeoB%2Fimage.png?alt=media\&token=111b2517-74f0-4f09-b7aa-42b71639615d)

### **Metallic**

This property can make reflective materials.

![Default settings](https://3795241431-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8XSUYVSlHMdPUNud-2%2F-M9VC7CU3n1e9FCe7KDw%2F-M9VEYtFQTbVKfYf6BoP%2Fimage.png?alt=media\&token=26b904fd-1ad7-4793-9f2d-25d1792e226c)

Example of a material using a white albedo and maximum Metallic setting of 1:

![](https://3795241431-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8XSUYVSlHMdPUNud-2%2F-M9VC7CU3n1e9FCe7KDw%2F-M9VEtcllZlrJ-WQCelj%2Fimage.png?alt=media\&token=9942f575-5115-45d8-ae24-60c5e0fe8e58)

What it looks like on a cube in the scene:

![](https://3795241431-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8XSUYVSlHMdPUNud-2%2F-M9VC7CU3n1e9FCe7KDw%2F-M9VIp2Q1gcTOdM4WIpd%2Fimage.png?alt=media\&token=ea5bfbe0-619e-4739-9eb3-f1d851a414f0)

Example of a material using a white albedo and maximum Metallic and Smoothness settings of 1:

![](https://3795241431-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8XSUYVSlHMdPUNud-2%2F-M9VC7CU3n1e9FCe7KDw%2F-M9VF8FBxICanQLZDaMv%2Fimage.png?alt=media\&token=6655cd13-2b47-4f8f-9ed7-d963afc286bc)

What it looks like on a cube in the scene:

![This is so metallic and smooth, it reflects the skybox to the point of looking transparent.](https://3795241431-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8XSUYVSlHMdPUNud-2%2F-M9VC7CU3n1e9FCe7KDw%2F-M9VIve1SV0fMM0c2Lyz%2Fimage.png?alt=media\&token=0f0ae3c0-bf1d-4e3b-b93a-ec0f363d995a)

### **Normal and Height Maps**

Normal and height maps are a type of texture that looks similar to the main albedo texture that is colored in a way to convert the texture into having the appearance of detailed depth. These are used in more advanced texturing and material techniques that allow developers to create super detailed scenes with very basic shapes.

### **Occlusion**

Occlusion tells the program what NOT to show. This property can be a texture to help add another layer of detail, similar to Normal and Height maps.

### **Tiling and Offset**

![](https://3795241431-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8XSUYVSlHMdPUNud-2%2F-M9VC7CU3n1e9FCe7KDw%2F-M9VHYvqidFYpjg43Vo6%2Fimage.png?alt=media\&token=0f25e41c-bd76-4d3a-8168-1c8303d3c27f)

Many textures are not "seamless" and will appear with a very noticeable seam down the middle of your game object. This Tiling and Offset property lets you stretch/zoom in or compress/zoom out the texture on the X and Y axes using the Tiling setting. To move the texture on either axis, use the Offset setting.

Example of using a tiling of 5 on both axes:

![](https://3795241431-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8XSUYVSlHMdPUNud-2%2F-M9VC7CU3n1e9FCe7KDw%2F-M9VJWv6hajQA9vgot24%2Fimage.png?alt=media\&token=5081cdb4-7db4-4ba8-86b1-1c2c3ed67932)

What it looks like on the cube object in the scene:

![](https://3795241431-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8XSUYVSlHMdPUNud-2%2F-M9VC7CU3n1e9FCe7KDw%2F-M9VJeu4imIjgwHERHRL%2Fimage.png?alt=media\&token=1d1054a1-7160-4316-b6c7-65a976c89f41)

{% hint style="warning" %}
Similar to enlarging lower quality images, lower-quality textures will look kinda crappy when zooming in (tiling less than 1). If you plan to use parts of a texture, try to find images that are larger.
{% endhint %}

### **Rendering Mode**

![](https://3795241431-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8XSUYVSlHMdPUNud-2%2F-M9VKg8_sL4sUEB7ScLN%2F-M9VLZlE5_05QO_VzTRf%2Fimage.png?alt=media\&token=c9977237-e337-4942-882a-fdc7054f2207)

This mode is where you can make a material render in different ways, including transparent.

### **Shaders**

![](https://3795241431-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8XSUYVSlHMdPUNud-2%2F-M9VKFx0kYfsCgWqqk4e%2F-M9VKddnekbw_SQFUimy%2Fimage.png?alt=media\&token=852b34b4-c694-4887-93db-928b59e63eb9)

As mentioned above, Shaders are powerful code that can tell the computer exactly how a surface or material should appear. In fact, "Standard," is the shader all these properties are part of. Standard is a good place to start, but some tutorials might tell you to choose another.&#x20;
