TextureBase:GetTexture
Jump to navigation
Jump to search
TextureBase:GetTexture |
||
TextureBase:GetTextureFileID |
||
TextureBase:GetTextureFilePath |
||
TextureBase:SetTexture |
||
TextureBase:SetColorTexture |
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
nil
if 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