MaterialTextureAliases()
Syntax
MaterialTextureAliases(#Material, TextureID1, TextureID2, TextureID3, TextureID4)Description
Set textures for use in a material script. It allows to use the same material script with dynamic textures. In the material script, the texture reference needs to be changed from 'texture mytexture.jpg' to 'texture_alias texture1' (or 'texture_alias texture2', 'texture_alias texture3', 'texture_alias texture4').
Parameters
#Material The material to use. TextureID1 The TextureID() to use for the first texture alias (identified as 'texture_alias texture1' in the material script), or zero if no texture is needed. TextureID2 The TextureID() to use for the second texture alias (identified as 'texture_alias texture2' in the material script), or zero if no texture is needed. TextureID3 The TextureID() to use for the third texture alias (identified as 'texture_alias texture3' in the material script), or zero if no texture is needed. TextureID4 The TextureID() to use for the fourth texture alias (identified as 'texture_alias texture4' in the material script), or zero if no texture is needed.
Return value
None.
See Also
GetScriptMaterial(), TextureID()
Supported OS
All