Sets a Texture object to display the icon of an equipped item. Adapts the square item icon texture to fit within the circular "portrait" frames used in many default UI elements.


See also Inventory functions.

Signature:

SetInventoryPortraitTexture(texture, "unit", slot)

Arguments:

  • texture - A Texture object (table)
  • unit - A unit whose item should be displayed; only valid for player (string, unitID)
  • slot - An inventory slot number, as can be obtained from GetInventorySlotInfo (number, inventoryID)