I have a 2D game, and I have an Image on a Canvas. I read the online docs, and read a few help posts on this topic, but I must admit to being confused as to why something that should be trivial eludes me. Unity provides about a dozen ways to Rotate something, and the docs intermix terms like Euler Angles and degrees, none of which makes any sense to me.
In a script, I simply want to change the Z component of the Rotation in this Rect Transform to read 45.
See the image below. Tell me what the script is to make the highlighted cell read 45. Hopefully before I lose my mind.
Bonus points if you can explain what the heck a Euler Angle actually is, because I clearly do not understand it.
G![alt text][1]
[1]: /storage/temp/46001-screen-shot-2015-05-07-at-53615-pm.png
↧