LUADOC - Farming Simulator 22

Script v1_7_1_0

Engine v1_7_1_0

Foundation Reference

setMaterialCustomMapFromFile

Description
Definition
setMaterialCustomMapFromFile(integer materialId, string name, string filename, boolean textueWrap, boolean isSRGB, boolean sharedEdit)
Arguments
integermaterialId
stringname
stringfilename
booleantextueWrap[optional, default defined by custom shader]
booleanisSRGB[optional, default defined by custom shader]
booleansharedEdit[optional, default=true]
Return Values
integernewMaterialIdmaterial id of new material (same as materialId with shared edit mode)