Material.Copy

Material Copy()

   
RETURNS: Material A new Material asset with the same shader and properties.

Creates a new Material asset with the same shader and properties! Draw calls with the new Material will not batch together with this one.

static Material Copy(string materialId)

   
string materialId Which Material are you looking for?
RETURNS: Material A new Material asset with the same shader and properties. Returns null if no materials are found with the given id.

Creates a new Material asset with the same shader and properties! Draw calls with the new Material will not batch togethre with the source Material.