Change Sprite Anchorpoint without moving it?
Posted
by OscarMk
on Stack Overflow
See other posts from Stack Overflow
or by OscarMk
Published on 2010-01-18T21:17:17Z
Indexed on
2010/04/14
8:53 UTC
Read the original article
Hit count: 297
Hello,
I am trying to change my Sprite anchor point so that I can rotate over a 0.0f,0.0f anchorpoint. At first my object is rotation at the default anchor point (0.5f,0.5f). However later on I need it to rotate over a 0.0,0.0 AnchorPoint.
The problem is I cannot change the anchor point and change the position accordingly, so it stays on the same position, without the object appearing to quickly move and reposition to its original point.
Is there a way I can set the anchor point and the position of my Sprite at once, without it moving at all?. Thank you.
-Oscar
© Stack Overflow or respective owner