首页 > 白马西风 > API TextureBase:SetTexture
2023
11-27

API TextureBase:SetTexture

https://wowpedia.fandom.com/wiki/API_TextureBase_SetTexture
摘要:

TextureBase:SetTexture([textureAsset, wrapModeHorizontal, wrapModeVertical, filterMode])
textureAsset - A FileID or the file path to a texture.
local tex = UIParent:CreateTexture()
tex:SetPoint("CENTER")
tex:SetTexture(134532) -- interface/icons/inv_mushroom_11
tex:SetTexture("Interface/ContainerFrame/UI-Icon-QuestBang")
tex:SetSize(64, 64)
觉得文章有用,微信打赏一元。



留下一个回复

你的email不会被公开。