Method ReplaceMaterial
ReplaceMaterial(uint, uint, OccurrenceList)
Replace a material by another everywhere it is used
Declaration
[HandleProcessCorruptedStateExceptions]
public void ReplaceMaterial(uint originalMaterial, uint newMaterial, OccurrenceList occurrences = null)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | originalMaterial | The material to replace everywhere |
| uint | newMaterial | The new material to set in place of originalMaterial |
| OccurrenceList | occurrences | The occurrences on which replacing the materials |