Sets the texture object's image or color. Always returns 1, regardless if the texture was set successfully. Prior to patch 4.0, it would return nil if the texture was not set successfully (i.e. an invalid path). After patch 4.0, it was still possible to validate by immediately calling :GetTexture(), but as of WoW 5.0.4, this is no longer possible, as :GetTexture() will return the path even if it is not valid.
texture- Path to a texture image (
red- Red component of the color (0.0 - 1.0) (
green- Green component of the color (0.0 - 1.0) (
blue- Blue component of the color (0.0 - 1.0) (
alpha- Alpha (opacity) for the color (0.0 = fully transparent, 1.0 = fully opaque) (
visible- Always returns
1regardless of success or failure. (