myModel.swapMaterial( oldMaterialName, newMaterial ) in Anark Studio 2.5
Use a new material in place of an existing material.
Arguments
name | type | description |
---|---|---|
oldMaterialName | String | The name of the old material.< |
newMaterial | Material | A reference to a new Material< |
- Return Type
- Material
Description
Swaps a specific material for another material. They must have identical smoothing modes.
Returns a reference to the material that was replaced.