Difference between revisions of "RemapData Struct - MatSwap"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Qazaaq
(added f4se member)
 
imported>Qazaaq
(removed incomplete)
 
(One intermediate revision by the same user not shown)
Line 15: Line 15:


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


Line 33: Line 33:
== See Also ==
== See Also ==
*[[MatSwap Script]]
*[[MatSwap Script]]
*[[GetRemapData - MatSwap]]
*[[SetRemapData - MatSwap]]
*[[ApplyMaterialSwap - ObjectReference]]





Latest revision as of 14:46, 11 February 2018

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.

Syntax[edit | edit source]

Struct RemapData
	string Source
	string Target
	float ColorIndex
EndStruct

Members[edit | edit source]

  • 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:

Examples[edit | edit source]

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 Also[edit | edit source]