Hi,
Is it possible to rotate a rect gui object. There are posts that give examples of gui rect translation animations, but is it possible to do the same for rotation?
Thanks.
Hi,
Is it possible to rotate a rect gui object. There are posts that give examples of gui rect translation animations, but is it possible to do the same for rotation?
Thanks.
Yes. You’ll need to set the GUI matrix, either by using GUIUtility.RotateAroundPivot or by setting GUI.matrix directly. Note that the rotation will affect all GUI objects rendered after changing it, so you’ll need to set the GUI.matrix back to Matrix4x4.identity after you’re done drawing the rotated object.