![]() |
Wowpedia is no longer updated, go away. |
Sets the opacity of the region.
Region:SetAlpha(alpha)
Arguments[]
- alpha
- number
[0.0 - 1.0]
- The alpha of the region.0
is fully transparent,1
is fully opaque.
Example[]
Creates a texture that is 50% transparent.
local tex = UIParent:CreateTexture()
tex:SetPoint("CENTER")
tex:SetTexture("interface/icons/inv_mushroom_11")
tex:SetAlpha(.5)
Patch changes[]
Patch 10.0.0 (2022-10-25): Throws an error when the
alpha
argument is outside the[0, 1]
range.Patch 2.1.0 (2007-05-22): A frame's alpha value now also affects all of its descendants.[1]
- "Frame alpha now propagates in the same way as scale (though is clamped between 0 and 1 on each object). This means you can cleanly fade the whole UI or specific frame assemblies."
- "Frame alpha now propagates in the same way as scale (though is clamped between 0 and 1 on each object). This means you can cleanly fade the whole UI or specific frame assemblies."
References[]
- ^ Iriel 2007-05-15. Upcoming 2.1.0 API Changes - Concise List. WoWInterface.