Hi All
I am trying to rotate a graphic in my script, in fact i want to rotate 2 graphics at different angles (eventually controlled by sliders)
my problem is that i don’t understand how the RotateAroundPivot knows what to rotate. It seems to rotate any of the GUI elements that follow for the rest of the code.
I have tried putting RotateAroundPivot inside groups, but it rotates all the groups that follow
Hope i have made this clear enough
Any help thanks
//Rotate Around Pivot Point 1
pivotPoint1 = Vector2(230,220);
GUIUtility.RotateAroundPivot(56, pivotPoint1);
GUI.DrawTexture (Rect (220,245,20,20),guiTex1, ScaleMode.StretchToFill);
//Rotate Around Pivot Point 1
pivotPoint2 = Vector2(230,220);
GUIUtility.RotateAroundPivot(23, pivotPoint2);
GUI.DrawTexture (Rect (200,20,75,75),guiTex2, ScaleMode.StretchToFill);