NOTE: Your backgrounds used with this function must have "Used for 3D" enabled.
NOTE: This does not work on HTML5!
A simple script to draw a rounded rectangle with a background texture. Background texture's size must be a power of two (eg. 32x32px)
The code can be used for whatever (CC0; copyleft)
End User Licence Agreement (EULA).
Added support for script autocompletion