TextureBase:SetMask

From Warcraft Wiki
Jump to navigation Jump to search

Applies a mask to the texture.

TextureBase:SetMask(file)

Arguments

file
string

Example

Applies a hexagon texture mask (HotS icon) to a texture.[1]

local tex = UIParent:CreateTexture()
tex:SetPoint("CENTER")
tex:SetTexture("Interface/Icons/Ability_Ambush")

tex:SetMask("Interface/ChatFrame/UI-ChatIcon-HotS")

UIOBJECT MaskTexture2.png

Patch changes

Warlords of Draenor Patch 6.0.2 (2014-10-14): Added.

References

  1. ^ Resike 2016-02-29. Texture:SetMask().