- Home /
GUIUtiliy.RotateAroundPivot() doesn't work
Hello everybody,
I have a small problem: I created an Image-Object inside of my Canvas, added a script to it which should do a minor task: It should roate the Image-Object.
To make that happen I used a Setup like this:
void OnGUI ()
{
GUIUtility.RotateAroundPivot(10f, new Vector2(Screen.width / 2, Screen.height / 2));
}
The problem is.... it is just not working xD No error message, no animation at all...
Do I have to refresh the canvas? Is the problem linked to the canvas containing multiple objects?
Thank you very much in advance
Have a nice day :)
Comment
Your answer
Follow this Question
Related Questions
Rotating guiTexture around a point in circle 0 Answers
How can I add a distance cap to this script? 3 Answers
How do I trigger GUI elements 1 Answer
How do I change the texture of a Raw image? 0 Answers
Guilayout problems with image resize 0 Answers