wowpedia
Main Menu


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)

API Region SetAlpha 01

Patch changes

References