When you select a material asset in your Unity project, you can view and edit it using the InspectorA Unity window that displays information about the currently selected GameObject, asset or project settings, allowing you to inspect and edit the values. More info
See in Glossary window. For general information on materials, see Materials introduction.
The following controls are available:
Control | Function | |
---|---|---|
Settings | Click the gear icon in the top right of the Inspector to open the Settings menu for the material and access the following options: | |
Select ShaderA small script that contains the mathematical calculations and algorithms for calculating the Color of each pixel rendered, based on the lighting input and the Material configuration. More info See in Glossary |
Selects the Unity shader in the Project view. | |
Edit Shader | Opens the source file for the Unity shader in your default external text editor. | |
Create Material Preset | Creates a duplicate of the material at the same location in your project. | |
Copy Material Properties | Copies the material properties to the clipboard. | |
Paste Material Properties | If the clipboard contains material properties, Unity pastes them into this material. Otherwise, it has no effect. | |
Copy Atlas | If the material is a Text MeshThe main graphics primitive of Unity. Meshes make up a large part of your 3D worlds. Unity supports triangulated or Quadrangulated polygon meshes. Nurbs, Nurms, Subdiv surfaces must be converted to polygons. More info See in Glossary Pro material, Unity copies the font atlas to the clipboard. Otherwise, it has no effect. |
|
Paste Atlas | If the material is a Text MeshA Mesh component that displays a Text string More info See in Glossary Pro material and the clipboard contains a Text Mesh Pro font atlas, Unity pastes it into this material. Otherwise, it has no effect. |
|
Reset | Reset all material properties to the default values defined in the Unity shader. | |
Shader | Use this drop-down menu to assign a Unity shader to this material. Unity shaders are organised according to their name. For more information on assigning a name to a Unity shader in ShaderLab code, see ShaderLab: assigning a name to a Unity shader. |
The properties that the Unity Editor displays for a material depend on the Unity shader that the material uses. This section of the Inspector window can look very different depending on the Unity shader.
For the material properties defined in Unity’s built-in shaders, see the following pages:
Property | Function |
---|---|
[Material properties, based on the Unity shader] | The properties for the currently selected Unity shader. For more information, see Assigning Material properties to a Unity shader. |
Render Queue | By default, materials use the render queue defined in their Unity shader. Use this drop-down menu to override this if required. For more information on render queues, see ShaderLab: SubShader Tags. Corresponds to the Material.renderQueue property. |
Double Sided Global Illumination | When enabled, the Progressive Lightmapper accounts for both sides of the geometry when calculating Global Illumination. This means that back-facing polygons bounce light using the same emission and albedo as front facing polygons. Note that Unity this does not mean that Unity renders back facing polygons, or adds them to lightmaps. Corresponds to the Material.doubleSidedGI property. |
When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. Click on the different category headings to find out more and change our default settings. However, blocking some types of cookies may impact your experience of the site and the services we are able to offer.
More information
These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly.
These cookies allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. All information these cookies collect is aggregated and therefore anonymous. If you do not allow these cookies we will not know when you have visited our site, and will not be able to monitor its performance.
These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising. Some 3rd party video providers do not allow video views without targeting cookies. If you are experiencing difficulty viewing a video, you will need to set your cookie preferences for targeting to yes if you wish to view videos from these providers. Unity does not control this.
These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information.