x


Flipping textures

I have two different gui texture elements:

1 x horizontal - this goes across my screen and has a horziontal texture applied to it. 1 x vertical- this goes up and down my screen and has a vertical texture applied to it.

I want to be able to take my vertical texture and apply it to my horizontal gui texture during game play but when I try to do this it come in the wrong way - it should come in as 512x256 but instad enters as 256x512 and looks very squashed.

Is there a way I can do this?

verticalGUI.texture = horizontalTexture; // This causes the image to come in with the   wrong orientation
more ▼

asked Nov 17 '10 at 08:11 PM

apple741 gravatar image

apple741
21 13 13 20

(comments are locked)
10|3000 characters needed characters left

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x5088
x3742
x3463
x2000
x181

asked: Nov 17 '10 at 08:11 PM

Seen: 1493 times

Last Updated: Nov 17 '10 at 08:11 PM