RemapData Struct - MatSwap

This article has been flagged as incomplete.
Please help improve the wiki by learning how to contribute.

F4SE Member of: MatSwap Script
Requires F4SE version 0.6.5 or higher.

A structure that holds information about a material swap remapping.

SyntaxEdit

Struct RemapData
	string Source
	string Target
	float ColorIndex
EndStruct

MembersEdit

  • Source: The original material used to override a Texture File referenced by a Model File.
  • Target: The new material to be applied in place of the original.
  • ColorIndex:

ExamplesEdit

MatSwap:RemapData remap = new MatSwap:RemapData
remap.Source = "OriginalMaterial.bgsm"
remap.Target = "NewMaterial.bgsm"
remap.ColorIndex = 0.0

Debug.Trace("The remap source equals " + remap.Source)
Debug.Trace("The remap target equals " + remap.Target)
Debug.Trace("The remap color index equals " + remap.ColorIndex)

See AlsoEdit