Create and apply materials
Create a material, make an editable copy of a read-only material, change a material's color and surface in the Inspector window, and assign it to an object in Unity Spark.
Read time 2 minutesLast updated 3 hours ago
Use materials to change the appearance of your objects' surfaces. For how materials and shaders work, refer to Introduction to materials and shaders.
Create a material
To create a material:
- Open the Project window (Add Window (+) > Project).
- Select the folder you want the material to go into. The folder opens.
- Select Create (+) > Material.
Unity Spark adds a material named and selects it, so you can rename it.
New MaterialEdit a read-only material
Built-in materials and materials that come with an imported model are read-only. This means you can't change their properties, such as color or surface type. To change one of these materials, you need to make an editable copy:
- Select the object that uses the material.
- In the renderer component, expand the material's slot.
- Select Edit Material.
Unity Spark creates an editable copy, assigns it to the slot, and adds it to your project. Other objects that use the original material keep it.
Change a material
To change a material:
- Select the material in the Project window, or expand its slot in an object's renderer component.
- In the Inspector window, select a Shader to set how the surface draws, such as Lit or Unlit.
- Change the material's settings, such as Main Color and Main Texture.
For a description of each setting, refer to Material settings reference.
Assign a material to an object
To assign a material to an object:
- Select the object in the Hierarchy window.
- In the Inspector window, find the renderer component, such as MeshRenderer or SpriteRenderer.
- Expand the Materials list.
- In the slot you want to change, select the material picker and select a material. You can also drag a material from the Project window onto the slot.
If you select several objects, Unity Spark assigns the material to all of them. If you drag a material onto an object in the Scene view or the Hierarchy window, Unity Spark doesn't assign it.