Supressing Unity Warning - Mesh has more materials (5) than subsets (3)

Hello all,

I’ve been cleaning the project I’m working on of all compiler warnings.

I get the following warnings (around 50 of them) whenever I build the project.

Mesh has more materials (5) than subsets (3)
UnityEditor.HostView:OnGUI()

And a similar set of warnings when I run the game

Mesh has more materials (5) than subsets (3)
UnityEditor.UnityBuildPostprocessor:OnPostprocessScene()

Unfortunately clicking on the warnings does not identify the offending gameobject or line of code.

If fixing the cause of these warnings would be difficult I would be happy with telling Unity not to display them.
Cheers.

3 Answers

3

Also faced with such a problem, you have at some object using the same material twice. Look disabling object by object, and you can easily find and correct this error.

When you apply more materials to the mesh, then it has been mapped to.

try removing some materials from the mesh renderer component.

People have asked this here for a SOLID DECADE with no simple (or any) answer. HOW TO REMOVE SHADER FROM A MESH RNDERER COMPONENT???
Only God knows apparently, we will find out when we Die. LOL…