# Texture Slot Component

Grammar — Slot component type of texture
FlagsNative | Function

Query a texture and returns which component this texture belongs to. (Diffuse, Normal, Specular or Emissive)

# Arguments

  • string [ gamelink::Texture ] — Texture

Returns — int

native int TextureGetSlotComponent(string textureLink);

Category: Actor / Utility

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L13030
TextureGetSlotComponent(gv_briefingVideoPlaying)
// L13030
TextureGetSlotComponent(gv_briefingVideoPlaying)

# mods/core.sc2mod

NativeLib.galaxy

// L1081
TextureGetSlotComponent(lp_texture)
// L1087
TextureGetSlotComponent(lp_texture)
// L1093
TextureGetSlotComponent(lp_texture)
// L1099
TextureGetSlotComponent(lp_texture)
// L1105
TextureGetSlotComponent(lp_texture)
// L976
TextureGetSlotComponent(lp_texture)
// L982
TextureGetSlotComponent(lp_texture)
// L988
TextureGetSlotComponent(lp_texture)
// L994
TextureGetSlotComponent(lp_texture)
// L1000
TextureGetSlotComponent(lp_texture)