3D Object Material Greyed Out

I am new to Unity. Using version 2022.3.48f1.

Every native 3D object I add to my scene will not let me change the color. I have been through dozens of discussions on this and I still can’t figure out how to change the default color of a Cube. Here is a screen shot of a Cube I renamed to OuterArea and you can se the Lit (Material) is disabled. So every cube I add to my scene has this default color. How to unlock it?

image

Any in-built Materials cannot be modified, and any Materials generated as part of the model import process also cannot be modified. After all Unity can’t go back and modify your FBX / Blender files. Think of these grayed out materials as transient representations of what was imported.

Dupe the Material (or make your own new Material) so you have a fresh copy and you can do whatever you like with it.

Keep this in mind too:

Materials materials array of materials renderer:

Generally accessing .material / .materials is going to give you a fresh copy. (See docs for why and when)

create a new material in the Project Panel. expand the Mesh Renderer component and replace the existing material in the Materials list.

or drag the material from the project panel on the object in the scene.

once you do this you can expand the material edit in the component panel and now you can change it.

2 Likes

Thanks. That was the solution I figured out. Why do I see “Parent: Yellow”? I don’t see any reference to a parent in the original Material.

Because whatever Material you have connected there is not a true Material but a Material Variant and it is a Variant of Yellow.

Try right-click make new material, then connect that. This is a fairly common workflow in Unity: assigning materials within Unity in order to make your scene consistent.

1 Like

I suggest some basic youtube tutorials, waiting for forum replies is not a good workflow. just search for how to do X in unity and you will get ton of great tutorials that are faster to learn and move on to more exciting stuff :slight_smile:

Yes, this ^ ^ ^ ^

Making new materials for stuff is basic Unity workflow.

Remember the two steps to tutorials and / or example code:

  1. do them perfectly, to the letter (zero typos, including punctuation and capitalization)
  2. stop and understand each step to understand what is going on.

If you go past anything that you don’t understand, then you’re just mimicking what you saw without actually learning, essentially wasting your own time. It’s only two steps. Don’t skip either step.