API Button SetNormalTexture

104,545pages on
this wiki
Add New Page
Add New Page Talk0
Widget API ← Button < SetNormalTexture

Sets the normal texture for a button.

Button:SetNormalTexture(texture or "texturePath")

Arguments Edit

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

Returns Edit


Details Edit

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.

Also on Fandom

Random Wiki