![]() |
The API is no longer being updated here until further notice. |
Returns the FileID for the texture.
textureFile = TextureBase:GetTexture()
Returns
- textureFile
- number? : fileID
Details
- If SetPortraitTexture is performed on the texture, then it will return
"RTPortrait1". - Returns
nilif the texture is a solid color from :SetColorTexture or any otherwise invalid parameter to :SetTexture.
Example
local tex = UIParent:CreateTexture()
tex:SetPoint("CENTER")
tex:SetTexture("interface/icons/inv_mushroom_11")
print(tex:GetTexture())
> 134532
