Mod:Creation Kit/GetMaterialSwap - ObjectReference

F4SE Member of: Mod:Creation Kit/ObjectReference Script

Gets the internal persistent Mod:Creation Kit/Material Swap for this reference. Some ObjectReferences placed in the world through the Editor may have this already filled.

Syntax
MatSwap Function GetMaterialSwap Native

Parameters
None

Return Value
The Mod:Creation Kit/Material Swap for this reference.

Examples
MatSwap myMaterialSwap = weaponReference.GetMaterialSwap Debug.Trace("Got the material swap "+myMaterialSwap+" from the "+weaponReference+" reference.")