Fandom

WoWWiki

UIOBJECT Texture

104,635pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Widget API < Texture


The following 2 functions are not included in Texture object's metatables and as such cannot be used as methods, however they impact texture appearance directly and as such included here:

SetPortraitTexture(texture,"unit") - Paint a Texture object with the specified unit's portrait.
SetPortraitToTexture(texture or "texture", "texturePath") - Sets the texture to be displayed from a file applying circular opacity mask making it look round like portraits.

Notes Edit

  • the game will not find image files that did not exist when it was started, you may need to restart the game for the texture to appear.

Also on Fandom

Random Wiki