Mirror()

void Mirror(bool horizontal, bool vertical)

Mirror the texture horizontally and/or vertically.

Example:

if(GUI.Button(new Rect(0,0,200,25),

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
}



< Back to previous page






follow us