|
ModelUtilsReplaceMaterial Method |
Goes through all models and replaces the materialToFind with newMaterial.
When isBackMaterial is set to true, BackMaterial is replaced instead of Material.
Namespace: Ab4d.SharpEngine.UtilitiesAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 2.0.8956+4c7684e186ca1be74e7a284fbe739d9a1b843d3c
Syntax public static void ReplaceMaterial(
SceneNode? sceneNode,
Material materialToFind,
Material newMaterial,
bool isBackMaterial = false
)
Parameters
- sceneNode SceneNode
- ModelNode or GroupNode
- materialToFind Material
- Material that will be replaced by newMaterial
- newMaterial Material
- Material that will be used instead of materialToFind
- isBackMaterial Boolean (Optional)
- if true then BackMaterial is replaced instead of Material
See Also