blog games developers documentation portfolio gallery

More in this category:

Mirror()

void Mirror(bool horizontal, bool vertical)



Mirror the texture horizontally and/or vertically.

Example:

if(GUI.Button(new Rect(0,0,200,25), "Upside down")) {
myTexture.Mirror(false, true); // Flip the texture vertically
}







follow us