- Found in:
- F4SE
<UNKNOWN_SCRIPT: MatSwap:RemapData>[]functionApplyMaterialSwap(MatSwapmSwap, boolrenameMaterial=false)Native
Description
Wiki Description
Applies a Material Swap to this reference, optionally renaming the material.
Documentation Comment
Returns the source/target pairs that succeeded in swapping
Rename material allows independent control over
[General]
bRenamePropertiesOnMaterialSwap=0
Parameters
MatSwapmSwap
CK Wiki Description
The Material Swap applied to this reference.
boolrenameMaterial=false
CK Wiki Description
Rename material allows independent control over the Initialization File setting
General::bRenamePropertiesOnMaterialSwap.
Examples
Game.GetPlayer().ApplyMaterialSwap(MyMaterialSwap)Auto-Generated Example
MatSwap myMatSwap__mSwap
bool myBool__renameMaterial
MatSwap:RemapData[] returnedValue = myObjectReference__toCallFunctionOn.ApplyMaterialSwap(myMatSwap__mSwap, myBool__renameMaterial)Related Pages
Additional References
View this function’s page on the Fallout 4 Creation Kit Wiki
