Search Unity

How to remove a material from an object in the editor?

Discussion in 'Editor & General Support' started by interNEKO, Oct 22, 2019.

  1. interNEKO

    interNEKO

    Joined:
    Sep 19, 2014
    Posts:
    4
    Hello,
    I've been Googl'ing and searching for what should be a simple thing, but hoping I can get an answer here.

    I dragged two different materials onto an object face, and I see them both listed in the inspector pane listed with the components of that object. However, I want to remove one of those materials. The cog for the material item doesn't have a remove option, and the options there seem to affect the material itself. I can't seem to select the material in the list, nor find any option to remove it. Tried dragging it out of the list, too.

    Is there something easy I am missing to remove a material from an object? It is odd that I have found others ask this with no answers, and searching for 'Remove material' doesn't turn up anything...

    Any help is really appreciated!
     
  2. bobisgod234

    bobisgod234

    Joined:
    Nov 15, 2016
    Posts:
    1,042
    In the inspector, on the MeshRenderer component, right click on the material you want to remove in the Materials list and click "Delete Array Element".

    Doing this once will clear the material, but leave an empty array element "None (Material)". Right click on that element and again click "Delete Array Element" to remove that empty element.
     
    Willbkool_FPCS, Elli-0 and interNEKO like this.
  3. interNEKO

    interNEKO

    Joined:
    Sep 19, 2014
    Posts:
    4
    Thank you so much!
     
  4. MartinH8921

    MartinH8921

    Joined:
    Aug 27, 2021
    Posts:
    8
    replying 2 years later: Why don't the unity developers make it so that you can just remove the material from the material component properties instead of having to go into the mesh renderer??