Widget API: Button:SetNormalTexture

Revision as of 04:45, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API Button SetNormalTexture to API Button SetNormalTexture without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Widget API ← Button < SetNormalTexture


Sets the normal texture for a button.

Button:SetNormalTexture(texture or "texturePath")


ArgumentsEdit

texture
Texture - The texture to use
texturePath
String - The path to the texture


ReturnsEdit

nil


DetailsEdit

You have to use "\\" or "/" in the texture path instead of "\" (since single backslash is the LUA escape character)

Although a texture object can be used as the argument, the texture will be re-parented to the button. Therefore, this function cannot be used to 'share' a texture between different widgets.