wowpedia
Main Menu


Applies a rotation to the texture.

TextureBase:SetRotation(radians [, normalizedRotationPoint])

Arguments

radians
number - Rotation angle in radians. Positive values rotate the texture counter-clockwise.
normalizedRotationPoint
vector2?🔗 = {x=0.5, y=0.5}

Details

Example

local tex = UIParent:CreateTexture()
tex:SetPoint("CENTER")
tex:SetTexture("interface/icons/inv_mushroom_11")

tex:SetRotation(math.pi/2)