title: Color submeshes in unity3d
body: <p>I have a <code>main_mesh</code> that has 10 submeshes, I wonder how I can change the color of of these submeshes to a different color (e.g submesh1 will have a red color, submesh2 will have a blue color,...etc). Any advise please?</p>
  
  <p>UPDATE:</p>
  
  <p>This is how I'm getting my mesh which has 10 submeshes:</p>
  
  <pre><code>        SkinnedMeshRenderer smr  = gameobject1.GetComponent&lt;SkinnedMeshRenderer&gt;();
          Mesh main_mesh = smr.sharedMesh;
  </code></pre>