Recall & Review
beginner
What is a Material in Unity?
A Material in Unity defines how a surface looks by controlling its color, texture, and how it reacts to light.
Click to reveal answer
beginner
How do you change the color of a Material in Unity using code?
You can change the color by accessing the Material's color property, for example: <br>
material.color = Color.red;Click to reveal answer
intermediate
What is the difference between a Material and a Shader in Unity?
A Shader is a program that tells the computer how to draw something. A Material uses a Shader and sets its properties like color or texture.
Click to reveal answer
intermediate
How can you access a Material's texture property in Unity?
You can get or set a texture using: <br>
material.mainTexture or material.SetTexture("_MainTex", texture);Click to reveal answer
advanced
What happens if you modify a Material directly on a Renderer component in Unity?
Modifying a Material directly on a Renderer changes the shared Material for all objects using it. To change only one object, use
renderer.material to get a unique copy.Click to reveal answer
Which property would you use to change the main color of a Material in Unity?
✗ Incorrect
The main color of a Material is controlled by the 'color' property.
What does a Shader do in Unity?
✗ Incorrect
A Shader is a program that controls how light and color appear on a surface.
How do you get a unique copy of a Material from a Renderer to modify it without affecting others?
✗ Incorrect
Using 'renderer.material' creates a unique instance of the Material for that Renderer.
Which method sets a texture property on a Material?
✗ Incorrect
SetTexture sets a texture property on the Material by name.
If you want to change the look of all objects sharing the same Material, what should you modify?
✗ Incorrect
Changing sharedMaterial affects all objects using that Material.
Explain how Materials and Shaders work together in Unity to create the appearance of an object.
Think about how a recipe (Shader) and ingredients (Material) combine.
You got /3 concepts.
Describe the difference between modifying 'material' and 'sharedMaterial' on a Renderer component.
Consider if you want to change one object or many.
You got /3 concepts.