Just set the texture and scale9Grid
on your Image
, and you're good to go. Everything else is handled internally.
In fact, there are no instances of SubTexture
created at all anymore. It's all handled by adjusting the vertices that are used to draw the main Texture
.