Method MergeMaterials
MergeMaterials(MaterialList, bool)
Merge all equivalent materials (i.e. with same appearance)
Declaration
public int MergeMaterials(MaterialList materials = null, bool evaluateNames = false)
Parameters
Type | Name | Description |
---|---|---|
MaterialList | materials | Materials to merge (merge all materials if empty) |
bool | evaluateNames | If true, materials names will be taken into consideration (on top of other properties). It means that materials having same properties but different names won't be merged together. |
Returns
Type | Description |
---|---|
int |