Mod:Creation Kit/SetRemapData - MatSwap

F4SE member of: Mod:Creation Kit/MatSwap Script

Sets the RemapData for this material swap.

Syntax
Function SetRemapData(RemapData[] data) Native

Parameters

 * data: An array of RemapData for this material swap.

Return Value
None

Examples
MatSwap:RemapData[] remapping = new MatSwap:RemapData[0]
 * Set the material swaps remapping data.

MatSwap:RemapData remap = new MatSwap:RemapData remap.Source = "TrafficLight.bgsm" remap.Target = "TrafficLightRed.bgsm" remapping.Add(remap)

MyMaterialSwap.SetRemapData(remapping) Debug.Trace(MyMaterialSwap + " was set with the remapping " + remapping)