# Texture Select By Match

Grammar — TextureSelectByMatch slotName.slotComponent sourceSlotName.sourceSlotComponent
FlagsNative | Function

Constructs and returns a TextureSelectByMatch actor message. Selects a texture into the specified slot so as to best match the contents of the source slot. Useful for populating Normal, Specular and Emissive slot components from the diffuse component. Works on actors with a model.

# Arguments

  • string — Slot Name
  • int — Slot Component
  • string — Source Slot Name
  • int — Source Slot Component

Returns — string<actormsg>

native string MakeMsgTextureSelectByMatch(
	string slotName,
	int slotComponent,
	string sourceSlotName,
	int sourceSlotComponent,
);

Category: Actor / Message Constructors

# Examples

— None found —