Hi
I have to rotate a Texture2D around its center, depending of my angle... But the real problem is that i don't know which command would i use.
HOw can i rotate a specific TEXTURE2D Object???
Thanks! :D
Hi
I have to rotate a Texture2D around its center, depending of my angle... But the real problem is that i don't know which command would i use.
HOw can i rotate a specific TEXTURE2D Object???
Thanks! :D
Take a look at GUIUtility.RotateAroundPivot()
If you mean a texture in the 3D scene, I had this same need (rotating particle's textures actually). I found this helpful:
http://unity3d.com/support/documentation/ScriptReference/Material.SetMatrix.html
Hi,
There is a working example of RotateAroundPivot() here:
http://answers.unity3d.com/questions/3561/how-to-rotate-gui-textures
Bye,
Jean