title: I do not want instance materials but the original materials in asset
body: <p>I made a script that copy all materials from a gameobject to another. It 'a script that runs in the editor to press a button.</p>
  
  <pre><code>TargetComponents[j].gameObject.transform.GetComponent&lt;Renderer&gt;().material=ComponentsToAdd[i].gameObject.transform.GetComponent&lt;Renderer&gt;().materials;
  </code></pre>
  
  <p>Is a Unity 5 script, but would be the same in unity 4, it makes little difference, like:</p>
  
  <pre><code>TargetComponents[j].gameObject.transform.render.materials=ComponentsToAdd[i].gameObject.transform.render.materials;
  </code></pre>
  
  <p>Works but the materials that I copied are not the same but are <strong>instances</strong>.
  I would like to know how to tell him not to create instances but use their original materials in asset.</p>
  
  <p>Is possible?</p>