Search Unity

How to rotate image without moving it

Discussion in 'UGUI & TextMesh Pro' started by Pelajesh, Feb 16, 2015.

  1. Pelajesh

    Pelajesh

    Joined:
    Dec 7, 2009
    Posts:
    363
    I am trying to create a windmill with rotating blades into my UI. However whenever I try to animate it, it also moves. How to avoid this? Or can someone point me towards tutorials that show how to rotate images in the new UI?
     
  2. nesseggman

    nesseggman

    Joined:
    Dec 20, 2012
    Posts:
    22
    What do you mean "It also moves"? Also, can you explain what you did to animate it?
     
  3. Pelajesh

    Pelajesh

    Joined:
    Dec 7, 2009
    Posts:
    363
    if I just use the rotate tool to rotate it and then set a keyframe then when its animating the image slides off to the side while its rotating and then comes back
     
  4. Pelajesh

    Pelajesh

    Joined:
    Dec 7, 2009
    Posts:
    363
    I solved it now, it was an issue with the pivot location