x


Draw a rotated image on GUI

Hi everyone! I would like to know if there is some away to draw a rotated image on the GUI. Or I must have all the images (even when is the same image in diferent angle ) in my assets? I would appreciate any help.

more ▼

asked Sep 24 '10 at 02:28 AM

Riliali gravatar image

Riliali
28 3 3 5

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

1 answer: sort voted first

Look up GUIUtility.RotateAroundPivot, which you use with GUI.matrix (you store the original matrix, use the rotated matrix, draw your texture then reset the original matrix).

http://unity3d.com/support/documentation/ScriptReference/GUIUtility.RotateAroundPivot.html

http://unity3d.com/support/documentation/ScriptReference/GUI-matrix.html

more ▼

answered Sep 24 '10 at 05:10 PM

Mike 3 gravatar image

Mike 3
30.7k 10 67 256

(comments are locked)
10|3000 characters needed characters left
Your answer
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:

x3815
x2249
x264
x223
x111

asked: Sep 24 '10 at 02:28 AM

Seen: 2403 times

Last Updated: Sep 24 '10 at 04:58 PM