A few weeks earlier I was confused in how to use the DrawTextureWithTexCoords, searching with google gave no results, yes there are fews example and perhaps tips, but those are unclear to me.
Fortunatelly after trial and error, I finally understand how this function really works, stick to me for more explanation.
Unity Documentation :
DrawTextureWithTexCoords(Rect position, Texture image, Rect texCoords, bool alphaBlend = true);
Position : Rectangle on the screen to draw the texture within.
Texture : Texture to display.
texCoords : How to scale the image when the aspect ratio of it doesn’t fit the aspect ration to be drawn within.
alphablend : Whether to alpha blend the image on to the display (the default). If false, the picture is drawn on the display.
For more simple explanation,
Continue reading »