TextureBase:SetMask
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")
Patch changes
Patch 6.0.2 (2014-10-14): Added.
References
- ^ Resike 2016-02-29. Texture:SetMask().